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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:50

Problems with overimages in main menu - they disapear ...


Poster: matthias-n
Dated: Tuesday March 15 2005 - 17:10:28 GMT

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


Poster: Ruth
Dated: Tuesday March 15 2005 - 18:49:02 GMT

Hi,
Your English is better than some native speakers I know. Can you give us a url to see what's happening, or a test page to check? Thanks

Ruth

link


Poster: matthias-n
Dated: Tuesday March 15 2005 - 20:02:07 GMT

here is the link to the page: http://www.schramm-beratung.de/


Poster: Ruth
Dated: Tuesday March 15 2005 - 20:34:22 GMT

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


Poster: kevin3442
Dated: Tuesday March 15 2005 - 20:46:13 GMT

Hi Matthias,
Ruth wrote:
...What exactly is onbgimage=?...

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.

Cheers,

Kevin


Poster: Ruth
Dated: Tuesday March 15 2005 - 20:53:25 GMT

I should have mentioned that, Kevin :!:

Matthais, you have, for example
Code:
aI("separatorcolor=#720000;image=Kontakt.jpg;onbgimage=Kontakt.jpg;overimage=Kontakt_over.jpg;showmenu=Kontakt;");


Remove the onbgimage so the string is
Code:
aI("separatorcolor=#720000;image=Kontakt.jpg;overimage=Kontakt_over.jpg;showmenu=Kontakt;");


Ruth

... solution?!


Poster: matthias-n
Dated: Wednesday March 16 2005 - 16:03:44 GMT

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/iongate/index.php?cont=2_4

thanks a lot,
matthias


Poster: Ruth
Dated: Wednesday March 16 2005 - 20:07:47 GMT

What OS and browser does this? I've got win98se and IE5.5 and the submenu stays right where it opened when I scrolled.

Great idea on making a new item in the submenu like that. It looks real good.

Ruth


Poster: stephen702
Dated: Wednesday March 16 2005 - 20:24:25 GMT

I see the reported scrolling behavior in Firefox and Netscape 7 (I'm on a PC with Windows XP Professional).

I do not see it in IE 6.


Poster: matthias-n
Dated: Wednesday March 16 2005 - 21:27:53 GMT

yes, it seems to be a problem with firefox.

does anybody know why?


Poster: John
Dated: Wednesday March 16 2005 - 21:56:20 GMT

Just to satisfy this old guy, try removing closeAllOnClick="true"; from your _data file (just to see what happens).

Also, don't think this should make a difference, but the JS calls do not require 1.2 - just 'javascript'.

Re: ... solution?!


Poster: kevin3442
Dated: Wednesday March 16 2005 - 22:27:36 GMT

Hi Matthias,
matthias-n wrote:
...and thanks for your help but it doesn't solve my problem.

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.

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


Poster: kevin3442
Dated: Wednesday March 16 2005 - 23:40:37 GMT

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


Poster: matthias-n
Dated: Thursday March 17 2005 - 9:26:40 GMT

hey, with the new 5.718a version it really works!

Thanks for all your help and comments!

Matthias