Is it possible to make a link from a main menu to open a lightbox2 that will contain a flv video?

I have flowplayer installed but not swf tools

I thought of doing it with javascript but I'm sure there is another way


Add rel="lightvideo" tag, it will popup the video, It also have the option to set the size of the modal window, for more information see the readme.txt

<a href="#" rel="lightvideo">Google video example</a>

I think if you just add rel="lightbox" to the link that should do it?


As was said before add the lightvideo tag to any link with the rel attribute, you can add the size like this. rel="lightvideo[width:600px; height:500px;]"

Adding it to a standard drupal menu item is a bit more difficult as you need to narrow down which menu item you want to apply it to. You could add it to the menu item with jQuery though, something like this:

$('.menu li a').attr('rel', 'lightvideo[width:600px; height:500px;]');

You'll need to narrow it down to the exact menu item you want, that will apply it to all of them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.