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

Auto play lightbox mit video

Apr 16, 2014

Q: Good morning,
I'm making a lightbox, but I like to know I have to do to Lightbox that plays automatically when you open the web directly, without having to click on the thumbnail that appears above hand left ... It's urgent please!

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