Skip to content

Instantly share code, notes, and snippets.

@zhabinka
Last active June 1, 2017 14:43
Show Gist options
  • Save zhabinka/a6e7125532a4958d6523de9174fa7517 to your computer and use it in GitHub Desktop.
Save zhabinka/a6e7125532a4958d6523de9174fa7517 to your computer and use it in GitHub Desktop.
Просмотр youtube видео во модальном окне
<center>
<div id="youtubepopup">
<a href="javascript:void(0)" onClick="javascript:window.open('http://www.youtube.com/embed/ID_youtube_video?autoplay=1', 'Youtube video', 'width=990,height=567,scrollbars=NO,left=150,top=50');">
<span></span>
<img src="http://i1.ytimg.com/vi/ID_youtube_video/mqdefault.jpg" alt="" />
</a>
</div>
</center>
Вариант в лайтбоксе - https://github.com/pinceladasdaweb/mediabox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment