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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:33

Using js-function in the menu, on an image


Poster: Rolf
Dated: Friday March 7 2003 - 11:56:42 GMT

Dear group,

I've posted the same question on the mailinglist already, but perhaps the forum is a better place for it.

I've played with it some more, but still can't get it to work :(
Thanks for any input.

----------- my original posting on the mailinglist -----------
I tried several ways to incorporate the following in the menu_array but
it keeps giving js errors and consequently the menu doesn't work anymore.

> original code to use it on normal text strings or images:
onmouseover="return makeTrue(domTT_activate(this, event, 'content', 'info text here', 'trail', true));"

> code to insert in menu_array:
return makeTrue(domTT_activate(this, event, 'content', 'info text here',
'trail', true))

> domtooltip code to insert in line:
,"<img src=images/status_off.gif border=0>","status.php swapimage=images/status_on.gif;",,,0

When I try something along the example like:
status.php onfunction=return makeTrue... swapimage=image/..

Also tried to use quotes (+ escaping them) surrounding the js-tooltip code,
but that fails too.

Can I insert a complete line of code into the array to get it to work?

TIA