Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:57

linking to a js file action


Poster: muscroft
Dated: Monday January 10 2005 - 20:23:33 GMT

I have two links on my present site for disabled users. They allow for the alteration of text between lge txt and std txt.

One of the two links looks like this:
a href="#" onClick="setActiveStyleSheet('standard'); return false;"

and calls a javascript file into action.
How can I include this type of link into the Milonic Menu?


Poster: kevin3442
Dated: Tuesday January 11 2005 - 0:29:15 GMT

Hi muscroft,

Load the .js file containing the definition for your setActiveStyleSheet() function as you normally would. To call the function from a menu item, do the following:
Code:
aI("text=Standard Text;url=javascript:setActiveStyleSheet('standard');");

Hope that helps,

Kevin

JS call works OK


Poster: muscroft
Dated: Tuesday January 11 2005 - 17:06:10 GMT

Thanks Kevin.

I have put your quoted text in place and all works as planned.
Many thanks for responding so quickly and efficiently.

:D