Page 1 of 1

Execute Javascript from Menu Item

Posted: Mon Oct 26, 2009 2:32 am
by bDoc
Can someone tell me how to execute a javascript popup box from a menu item? I would like to popup a lightbox window. To be exact how do I open this box, http://leandrovieira.com/projects/jquery/lightbox/ from the menu.  Thanks. I hope this is possible and someone has some detailed info on how to do it.

Re: Execute Javascript from Menu Item

Posted: Mon Oct 26, 2009 4:23 am
by calguy1000

Re: Execute Javascript from Menu Item

Posted: Mon Oct 26, 2009 5:32 am
by bDoc
Thanks for the quick response. I'm using the cssmenu template so where would I put the code below after importing to the database?
{elseif $node->type == 'link'}
url}">{$node->menutext}

Re: Execute Javascript from Menu Item

Posted: Tue Oct 27, 2009 12:09 am
by Dr.CSS
It would most likely go after the...

{elseif $node->type == 'separator'}