I have a video (not a youtube vid) that i need to display as a popup on my home page its like an advertisement/commercial.
Can anyone recommend a jquery plugin that will achieve this?
What im looking to do is have the video popup once the home page is loaded but also have an option for the user to close the video at any time if they wish to do so.
Any advice on the best way to go about this would be welcome.
jQuery-UI Dialog box will do this easily. You don’t need to include the entire jQuery-UI Library if this is all you need, just be sure to uncheck all the other functions you don’t need when you download it.
<div id="dialog-modal" title="My Video">
<video controls="controls" autoplay="autoplay">
<source src="video/Add_x264.mp4" type="video/mp4" />
<source src="video/Add_libtheora.ogv" type="video/ogg" />
<source src="video/Add_VP8.webm" type="video/webm" />
Looks like your browser is out of date. To view this video please update to the latest version of your web browser.
</video>
</div>