Making a swapimage persist while a submenu is open

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

Making a swapimage persist while a submenu is open

Post by kevin3442 »

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
somorgujo
Beginner
Beginner
Posts: 8
Joined: Thu Sep 26, 2002 3:42 pm

I'm looking for the same

Post by somorgujo »

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
somorgujo
Beginner
Beginner
Posts: 8
Joined: Thu Sep 26, 2002 3:42 pm

Well fine, here I've found a workaround

Post by somorgujo »

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

Re: I'm looking for the same

Post by kevin3442 »

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
somorgujo
Beginner
Beginner
Posts: 8
Joined: Thu Sep 26, 2002 3:42 pm

This seems to work just in IE

Post by somorgujo »

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
dikonstrukt
Beginner
Beginner
Posts: 6
Joined: Fri Oct 04, 2002 4:22 pm

well... i'm lost hehe

Post by dikonstrukt »

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