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

Making a swapimage persist while a submenu is open


Poster: kevin3442
Dated: Monday September 16 2002 - 8:43:00 BST

Hi All,

I've perused the forums, looking at the posts containing "rollover" and "swapimage" and I haven't found an answer. I have a swapimage in a menu item that opens a submenu. The swapimage in the main menu item appears while the mouse pointer is on it, as one would expect. But when the pointer is in the resulting submenu, the main menu item reverts back to its "mouse off" image. I see that this is also the case in the Dynamic Images example on the Milonic website (which makes me think that the answer to my question will be "no"). I would like to be able to have each previous-level swapimage persist while the entire menu chain remains open, kind of like the "mouse on background colors" do. Can this be done?

Kevin

I'm looking for the same


Poster: somorgujo
Dated: Thursday September 26 2002 - 15:48:12 BST

Have you already tried with the backimage/overbackimage properties?

What I mean is like in this example:

http://www.milonic.co.uk/menu/menusample.php?sampleid=4

Regards
8O

Well fine, here I've found a workaround


Poster: somorgujo
Dated: Thursday September 26 2002 - 17:31:35 BST

Here the code of one menu item

,"<img src=images/placeholder.gif border=0>","# backimage=images/navigationbar_01.jpg;overbackimage=images/navigationbar_01_over.jpg;",,,0

At least in IE 5.5 is working I'll see if it is working in others.

Have fun[/b]

Re: I'm looking for the same


Poster: kevin3442
Dated: Friday September 27 2002 - 22:28:39 BST

somorgujo wrote:
Have you already tried with the backimage/overbackimage properties?

What I mean is like in this example:

http://www.milonic.co.uk/menu/menusample.php?sampleid=4


Hi somorgujo,

Thanks for the reply. The example page you cited is actually the one I used to model my approach. That example uses swapimage, rather than backimage and overbackimage, so I also used the swapimage alt preoperty. But in fact, the example page suffers from the same thing I'm trying to avoid. That is, the image on a main menu selection reverts back to its "mouse off" state, when you move the pointer to one of its submenus items.

I had not been aware of the backimage and backoverimage properties. Are these alternate properties; to be placed in the script following the same rules as swapimage? I.e., can I place them also in the Alternate URL field? I'll give it a shot.

Thanks,

Kevin

This seems to work just in IE


Poster: somorgujo
Dated: Wednesday October 2 2002 - 15:33:32 BST

Here is an example of how you must code one line to get this effect and a submenu

,"<img src=images/placeholder.gif border=0>","show-menu=aboutsyngenta","# backimage=images/navigationbar_01.jpg;overbackimage=images/navigationbar_01_over.jpg;",,0

but be aware that this property seems to be a little bit buggy and I test it in NS6, Opera 6.03 and is not working very well

Note: the placeholder image should be as big as the overbackimage but transparent

well... i'm lost hehe


Poster: dikonstrukt
Dated: Friday October 4 2002 - 16:26:48 BST

i've tried every permutation of the mouseover i can think of, including following the examples. no luck.

i am using a framed site, which is perhaps making it impossible?

the closest i got to it was this: the swap image appears, but then i get an error on line 34, object required. code looks like this.

,"<img src=images/button_listen.gif border=0 width=106 height=18>","/ swapimage=images/button_listen_on.gif;show-menu=listen target=core;sourceframe=core",,"#",1

in every other variation i get no error, but also no image.

thanks to anyone who can help! i've been trying for hours lol.