English  Italiano  Français  Español  Dansk  Deutsch  Deutsch  Português  Suomi 
Video Lightbox

Autoplay html video player code

Dec 19, 2013

Q: Hi. I need the next function:

I need you to enter the website, automatically open in the center of the page a popup (image), without pressing a button. Is possible with your software make this work?

Thank for your time and support!!

A: You can start Video LightBox gallery on page load.
You should set the following function in Video LightBox BODY section:

<script type="text/javascript">
$( function(){$("#videogallery a[rel]:first").overlay().load()});
 </script>



You should also set id="mylink" for video link:

<!-- Start VideoLightBox.com BODY section -->
...
<div id="videogallery">
<a rel="#voverlay" id="mylink" href="http://www.youtube.com/v/vPisAYTubrg?autoplay=1"
title=""  style="display:none;">
<img src="data/thumbnails/0.png"><span></span></a><a id="videolb" href="http://videolightbox.com">
Video In A Lightbox by VideoLightBox.com v1.3</a></div>

 <script type="text/javascript">
$( function(){$("#videogallery a[rel]:first").overlay().load()});
 </script>

<!-- End VideoLightBox.com BODY section -->

Related