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

How to start videos to website v.2.0+ from link? I don't want to display thumbnails.

Jun 05, 2012

Q: I use your VideoLightBox v.2.1 (free version).
I was hoping to link the "watch" buttons and have the videos open from there but couldn't get it to work.
Any guidance would be appreciated.

A: 1) Open generated "videolightbox.js" file in any text editor (for example, Notepad), find
following code:

a(function(){videoLightBox(".voverlay")})


and add "#watch" parameter. You'll have:

a(function(){videoLightBox(".voverlay,#watch")})


2) Specify the link/image:

<a class="voverlay" href="http://www.youtube.com/..." title="Watch Video"><img src="index_videolb/thumbnails/0.png" alt="Watch Video" /><span></span>Video</a>


3) Open generated "videolightbox.css" file in any text editor (for example, Notepad), find
following lines:

.videogallery a img{
        display:block;
        border:none;
        margin:0;
}


Set "none" value for "display" parameter. You'll have:

.videogallery a img{
        display:none;
        border:none;
        margin:0;
}

Related