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

Is a way to force the video jquery up on a page when the user lands on it

Dec 14, 2011

Q: I was wondering if there is a way to force the video up on a page when the user lands
on it - rather than having to click something to bring up the lightbox window.
Is there an easy solution?

A: Yes, it is possible.

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 -->