Trouble adding OnClick to AI()

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jbruso
Advanced
Advanced
Posts: 29
Joined: Fri Jun 17, 2005 11:13 pm

Trouble adding OnClick to AI()

Post by jbruso »

I need to set a cookie and send the user to a URL when clicking on the link. What is the best way to do this?

How do I do what I'm doing in this image map, in the Milonic code??

<area shape="rect" alt="Sheridan College Home Page" coords="0,0,208,18" href="/index_live.asp" onClick="javascript:StorelocationSelection('Sheridan');">

Thanks!
jbruso
Advanced
Advanced
Posts: 29
Joined: Fri Jun 17, 2005 11:13 pm

Sorry if that was unclear

Post by jbruso »

Not sure if that was clear enough... this might make my question more clear:

This is what I have so far, but it isn't working... Am I using the onFunction with correct syntax??

aI("image=/images/tabs_eserv_new.gif;overimage=/images/tabs_eserv_new_over.gif;url=/eservices/;onfunction=javascript:StorelocationSelection('Sheridan');");
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Try this instead:

aI("image=/images/tabs_eserv_new.gif;overimage=/images/tabs_eserv_new_over.gif;url=/eservices/;onfunction=StorelocationSelection('Sheridan');");

hope this helps
Andy
Post Reply