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:20

Help please : javascript in submenu


Poster: madmax
Dated: Monday July 12 2004 - 17:43:33 BST

Hello,

i want to put an javascipt code in a submenu like :

aI("text=<SCRIPT language="JavaScript">menu.Aff();</SCRIPT>;image=image_2.gif;");

this line is displayed in my page in html : <SCRIPT language="JavaScript">menu.Aff();</SCRIPT>

It doesn't work and i can't resolve this problem.

Regards,

Alexis


Poster: kevin3442
Dated: Monday July 12 2004 - 21:03:25 BST

Hi Alexis,

A javascript function call goes in the url property of the item's aI() string, like so:
Code:
aI("text=Item Text;image=image_2.gif;url=javascript:menu.Aff();");

Hope that helps,

Kevin


Poster: madmax
Dated: Monday July 12 2004 - 21:08:44 BST

Helo kevin,

thanks but it is not what i want. Ion't want a link but a display in the sub menu.
menu.Aff() shows a double rollmenu.

Alexis.