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

Can I open embeddable video player from text link?

Dec 12, 2012

Q: I've asked for the directions for linking to existing hypertext in a document so that the video opens when the link within the text on the pages is selected - for instance the bold, underlined text above.

A: See how you should start the gallery onClick from the link.

1) Change the following code in the engine\js\videogallery.js

$("#videogallery a[rel]")


to

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



2) Specify the link/image:

<a rel="#voverlay" href="http://www.youtube.com/v/31aWy9lcyJk" id="watch" title="Watch Video">Video</a>



3) Use 'display: none;' property for your gallery in the HEAD section of VisualLightBox.
Just change the following code:

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



to:

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

Related