Problems with overimages in main menu - they disapear ...
-
- Beginner
- Posts: 5
- Joined: Tue Mar 15, 2005 6:04 pm
Problems with overimages in main menu - they disapear ...
Hi,
I've got a problem with the overimages in the main menu. When I move my mouse down to the submenu everything is ok - the overimage stays. But when I move the mouse up and not over other main menus or over the submenu, it disapears.
What I want is a menu that stays until I click somewhere. It works fine with the submenus but not with the main menus when I move the mouse up.
Sorry for my bad english, I hope you could understand me.
Thanks for your help,
Matthias
I've got a problem with the overimages in the main menu. When I move my mouse down to the submenu everything is ok - the overimage stays. But when I move the mouse up and not over other main menus or over the submenu, it disapears.
What I want is a menu that stays until I click somewhere. It works fine with the submenus but not with the main menus when I move the mouse up.
Sorry for my bad english, I hope you could understand me.
Thanks for your help,
Matthias
-
- Beginner
- Posts: 5
- Joined: Tue Mar 15, 2005 6:04 pm
link
here is the link to the page: http://www.schramm-beratung.de/
That is the normal behaviour of the menu. If you mouse over a main menu item, but do not mouse over anything in the submenu, when you remove your mouse from that main menu item, either by moving it off the menu or onto a different main menu item, onMouseOut the item goes back to the bgimage from overbgimage. The reason it shows so much more on your menu is you have the submenus set to stay open a very long time.
What exactly is onbgimage=? do you have a function or code someplace for that? I don't believe that's a menu property. There is onsubimage, oncolor, onclick, but no onbgimage that I can find. If you don't have some function written for that, you should remove it.
Ruth
What exactly is onbgimage=? do you have a function or code someplace for that? I don't believe that's a menu property. There is onsubimage, oncolor, onclick, but no onbgimage that I can find. If you don't have some function written for that, you should remove it.
Ruth
Hi Matthias,
Cheers,
Kevin
As usual, Ruth is correct. there is no onbgimage property. However, just as the image property has a corresponding overimage property for mouseovers, the bgimage property also has a corresponding mouseover property called overbgimage.Ruth wrote:...What exactly is onbgimage=?...
Cheers,
Kevin
I should have mentioned that, Kevin
Matthais, you have, for example
Remove the onbgimage so the string is
Ruth

Matthais, you have, for example
Code: Select all
aI("separatorcolor=#720000;image=Kontakt.jpg;onbgimage=Kontakt.jpg;overimage=Kontakt_over.jpg;showmenu=Kontakt;");
Code: Select all
aI("separatorcolor=#720000;image=Kontakt.jpg;overimage=Kontakt_over.jpg;showmenu=Kontakt;");
-
- Beginner
- Posts: 5
- Joined: Tue Mar 15, 2005 6:04 pm
... solution?!
hi
and thanks for your help but it doesn't solve my problem.
I had an idea: I made the first item of the sub menu the same like the "parent" main menu item. Then I put the submenu with "top xy" over the "parent" main menu item. Now it works fine.
BUT: when I scroll down the page, the submenu scrolls down too. Do you have an idea where my mistake is?
here is the url of my development directory: http://217.160.137.136/development/iong ... p?cont=2_4
thanks a lot,
matthias
and thanks for your help but it doesn't solve my problem.
I had an idea: I made the first item of the sub menu the same like the "parent" main menu item. Then I put the submenu with "top xy" over the "parent" main menu item. Now it works fine.
BUT: when I scroll down the page, the submenu scrolls down too. Do you have an idea where my mistake is?
here is the url of my development directory: http://217.160.137.136/development/iong ... p?cont=2_4
thanks a lot,
matthias
- stephen702
- Super Advanced
- Posts: 77
- Joined: Wed Jul 16, 2003 4:53 am
- Location: Davis, CA
- Contact:
-
- Beginner
- Posts: 5
- Joined: Tue Mar 15, 2005 6:04 pm
Re: ... solution?!
Hi Matthias,
Regarding the current situation... your solution of "faking" the main menu item with the first item in a repositioned submenu is clever; nice thinking. If I understand the current problem, it's that the opened submenu does not scroll along with the rest of the page, so it becomes dislocated from the menu if the user scrolls. Correct?
This sort of behavior makes me think that the submenu's position property defaults to "fixed" positioning, so once it is opened, the submenu remains fixed in the same position on the screen as the rest of the page's content scolls by. If "fixed" positioning is indeed the default, it would explain why IE is not affected; IE does not support fixed positioning.
You might try setting position="absolute"; in your submenu definitions. That may take care of the unwanted non-scrolling effect. Be sure to test the behavior in all of your target browsers, to make sure the change doesn't adversely affect some.
Hope that helps,
Kevin
Just to clarify, my and Ruth's comments about overbgimage were not intended as a solution to your main issue. They were just meant to point out to you, and anyone else who might read the thread, that there is no such property as onbgimage; that the correct property name for such functionality is overbgimage.matthias-n wrote:...and thanks for your help but it doesn't solve my problem.
Regarding the current situation... your solution of "faking" the main menu item with the first item in a repositioned submenu is clever; nice thinking. If I understand the current problem, it's that the opened submenu does not scroll along with the rest of the page, so it becomes dislocated from the menu if the user scrolls. Correct?
This sort of behavior makes me think that the submenu's position property defaults to "fixed" positioning, so once it is opened, the submenu remains fixed in the same position on the screen as the rest of the page's content scolls by. If "fixed" positioning is indeed the default, it would explain why IE is not affected; IE does not support fixed positioning.
You might try setting position="absolute"; in your submenu definitions. That may take care of the unwanted non-scrolling effect. Be sure to test the behavior in all of your target browsers, to make sure the change doesn't adversely affect some.
Hope that helps,
Kevin
Here's a coincidence...
Please see this post and Andy's reply for updated info.
Did a quick test, and indeed 5.718a solved the problem without having to mess with the position property.
Kevin
Please see this post and Andy's reply for updated info.
Did a quick test, and indeed 5.718a solved the problem without having to mess with the position property.
Kevin
-
- Beginner
- Posts: 5
- Joined: Tue Mar 15, 2005 6:04 pm