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

I need to open the html video embed code for example with text immediately

Dec 06, 2011

Q: I would like to tell me if it possible to have a link in my site and when i click on it your beautiful
player showed up immediately without open the page with the videos.
I need to open the player (for example with text) immediately.

A: To start Video LightBox onclick from link/image:

1) Change the following code in engine/js/videolightbox.js

$("#videogallery a[rel]")
           to


$("#videogallery a[rel],#watch")



2) Specify the link/image with the id="watch":

<a rel="#voverlay" id="watch" href="http://www.youtube.com/v/jp-qh3heb04?autoplay=1&rel=0" title="Ford Mustang">
Click to start Video Gallery
</a>

Related