Следите за новостями любимого конструктора сайтов uCoz в социальных сетях!
Как сделать штоб вот етат код с видео выводился как в модуле видео в одельном окне как на скриншоте
<embed src='http://s3.spruto.org/embed/player.swf' type='application/x-shockwave-flash' allowfullscreen='true' allowScriptAccess='always' width='800' height='450' flashvars='albumId=11306&userId=J3r38ZIPTEKZOoqeZE2iqg2&videoId=111924' allownetworking='external' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>
ищо адин вопрос я немагу найти где тут мою сылку на видео вставлять?
<style> img[src$="/mqdefault.jpg"] + iframe { position: fixed; z-index: 11; top: 0; left: 0; width: 100%; height: 100%; -moz-box-sizing: border-box; box-sizing: border-box; border: solid rgba(0,0,0,.3); border-width: 5vh 5vw; } </style> <img title="видео: переправа" alt="переправа" src="http://img.youtube.com/vi/JMJXvsCLu6s/mqdefault.jpg" height="180" width="320" class="tr-caption-container"/> <script> var img = document.querySelectorAll('img[src$="/mqdefault.jpg"]'); for (var i = 0; i < img.length; i++) { img[i].onclick = function() { var idImg = this.src.replace(/http...img.youtube.com.vi.(.*?).mqdefault.jpg/gi, '$1'); theIframe = document.createElement('iframe'); theIframe.src = '//www.youtube.com/embed/' + idImg + '?rel=0&autoplay=1'; theIframe.onclick = function () {this.parentElement.removeChild(this);}; this.parentNode.insertBefore(theIframe, this.nextSibling); } } </script>
пример ссылки на видео - https://www.youtube.com/embed/SmLZrTKtvJQ вот смотрим указано в коде -
?rel=0&autoplay=1
попробуйте заменить на SmLZrTKtvJQ вроде так