Image disappearing onclick and offset issue

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
MRI
Advanced
Advanced
Posts: 12
Joined: Tue Jan 27, 2004 10:03 am

Image disappearing onclick and offset issue

Post by MRI »

Hi

If have two issues with the menu on this site:
http://ddv.inet-designer.dk

1. Sometimes when I click on a submenu item the image on the mainmenu item disappears.

2. The offset for the submenu items of the bottom menu has no effect - and it is therefore 2px higher than the spot, where I want it to be.

Best regards
Martin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

One thing I noticed is that you are using rc30 and I think the newest one is rc46. It won't fix this issue but it does have a lot of fixes from previous issues. As to this problem. The reason you are not getting that to function is that you must set a screen position from which the offset can work. So, it should be coded in the menu like this

Code: Select all

with(milonic=new menuname("folder_id8")){
style=menuStyle2;
screenposition="bottom";
left="offset=212";
top="offset=-25";
aI("text=test;url=default.asp?id=7;status=test;");
}
The left offset is one less than the offset you have set for that bottom menu's left position, and the top offset is the same as the height of the image used from which the submenu is called on mouseover. The same coding would be needed in all the menus that come off that bottom menu. I tested it and it works in IE5, NN6, 7, and Opera 6, 7 Hope that helps :)

Another issue on your site, I don't know if this is supposed to be like that or not, but you have no scroll bars and though I know it's there because it got downloaded when I save the page to try and figure out the menu problem, I do not see anything below the menu, your menubg_bottom is not visible which is where I believe you have an email link.

Ruth
MRI
Advanced
Advanced
Posts: 12
Joined: Tue Jan 27, 2004 10:03 am

Thanks

Post by MRI »

Thank you for your help. Setting the screenposition solved both problems.
Regarding the scrollbars - graphic designers love making things difficult - this particular one doesn't like the standard scrollbars so we used a custom scroller.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hmm, maybe you should give them the comment I made. It seems the custom ones don't work on older browsers....bet lot's of people have older ones. Perhaps there's a way to set the custom ones but have the regular ones appear on the older ones? That's beyond me. :)

Ruth
Post Reply