Reputation: 519
<div class="player"><iframe src="http://player.vimeo.com/video/<?= $vimeo;?>?title=0&byline=0&portrait=0&color=abcc16&autoplay=0" width="150" height="150" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></div>
How do i open a popup window on the same page with the cross(x) on top when i click on play button for the video displayed on the html page? And it has to display Watch Video on the video Window before the user clicks on it. I am currently using the above code in php to display the frame window in the browser.
Upvotes: 0
Views: 4679
Reputation: 6441
jquery + colorbox plugin http://www.jacklmoore.com/colorbox
Open a colorbox popup with the "watch video" message in it. Add click
handler that replaces the message with the video iframe.
Upvotes: 1