Execute Javascript from Menu Item

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
bDoc
Forum Members
Forum Members
Posts: 31
Joined: Sun Feb 22, 2009 2:09 am

Execute Javascript from Menu Item

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Execute Javascript from Menu Item

Post by calguy1000 »

Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bDoc
Forum Members
Forum Members
Posts: 31
Joined: Sun Feb 22, 2009 2:09 am

Re: Execute Javascript from Menu Item

Post 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}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Execute Javascript from Menu Item

Post by Dr.CSS »

It would most likely go after the...

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

Return to “Layout and Design (CSS & HTML)”