Using js-function in the menu, on an image

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Rolf
Beginner
Beginner
Posts: 6
Joined: Fri Mar 07, 2003 12:52 pm

Using js-function in the menu, on an image

Post by Rolf »

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