Help please : javascript in submenu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
madmax
Beginner
Beginner
Posts: 2
Joined: Mon Jul 12, 2004 5:35 pm

Help please : javascript in submenu

Post by madmax »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Alexis,

A javascript function call goes in the url property of the item's aI() string, like so:

Code: Select all

aI("text=Item Text;image=image_2.gif;url=javascript:menu.Aff();");
Hope that helps,

Kevin
madmax
Beginner
Beginner
Posts: 2
Joined: Mon Jul 12, 2004 5:35 pm

Post by madmax »

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.
Post Reply