Mac IE follow scrolling feature defunct // menu goes to top

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

Mac IE follow scrolling feature defunct // menu goes to top

Post by cubefree »

My client uses a Mac with IE 5.2 and the vertical menu is follow scrolling all the way to the top. Another client reports the same in Mac IE 5.1.

I'm using Version 5.05 - Built: Saturday March 6 2004 - 12:51
For now I turned it off, but any ideas what would cause that?

I have the following code:

Code: Select all

with(milonic=new menuname("Main Menu")){
top=212;
left=20;
itemwidth=172;
style=menuStyle;
alwaysvisible=1;
orientation="vertical";
if (!mac) {
	followscroll = "25,50,15";
}
Check link:
http://www.watsunorthwest.com/index.php

Strangely, in Mac IE it does NOT do this with another site I built menus for using Version 5.0 Release Candidate 5.0 7th August 2003.

http://r2r.providence.org/proginfo/valu ... sions.aspx

Thx,
Cubist
cube me freely, cube me wisely, cube me often
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

The first number 25 is the top position of followscroll 25px.

Did you want it to followscroll at 212px's?

maz
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

Post by cubefree »

Yes, that's right. It should start and go no higher than 212 when arriving at a page. See the current effect in Mac IE here http://www.cubefree.com/watsu1.gif

But once you've scrolled down, it should stay 25 px from the top. IE works wonderfully, of course.

I was trying to search the blog for specs on followscroll, I saw one before describing the 3 parts to the attribute. Ah... here it is http://milonic.com/forum/viewtopic. ... llowscroll

Maybe I should try this...?

Code: Select all

if (mac) {
	top=0;
	offset=212;
	followscroll = "25,50,15";
}
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Oh the wonderful Apple Mac IE Browser :evil:

What you'll need to do is move the menu SCRIPT references into the BODY. At the moment they are in the HEAD.

For some reason, the Microsoft developers decided that HTML code placed in the HEAD doesn't actually become part of the BODY content and it becomes all messed up. All other browser can allow for this.

Real strange things happen with the menu inside the HEAD, sometimes it's OK but in this instance it's not setting the top position of the main menu properly. It's actual top position is 196 pixels, even though you've set it at 212 :?: :?: :?:

I've never been able to figure out why this happens.

Cheers
Andy
Post Reply