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

Does the flv embed player allows for a video to popup on page load

Nov 18, 2011

Q: I was wondering if you could tell me whether the flv embed player allows for a video (vimeo) to
popup in a lightbox automatically on page load and then play.
I am having a heck of a time finding something that will work from page load.

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()});

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()});

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