Menu following scroll (and I don't want it to float)
- davebarnes
- Super Advanced
- Posts: 71
- Joined: Tue Nov 18, 2003 6:09 am
- Location: Denver, CO USA
- Contact:
Menu following scroll (and I don't want it to float)
I installed Milonic Menu 5.722 on http://www.kokias.com because I need a menu that would have the submenu items display on top of an iframe.
This version did the job.
But, using FireFox 1.03 on Windows, the menu floats down the page as you scroll down the page.
See: http://www.kokias.com/English/Products_ ... Photo.html
How do I prevent this?
Can you point me to the documentation about this effect?
thanks,
dave
P.S. I have this code: followscroll="0"; in my menu style.
This version did the job.
But, using FireFox 1.03 on Windows, the menu floats down the page as you scroll down the page.
See: http://www.kokias.com/English/Products_ ... Photo.html
How do I prevent this?
Can you point me to the documentation about this effect?
thanks,
dave
P.S. I have this code: followscroll="0"; in my menu style.
John is right... it doesn't have to do with the followscroll property. Rather, the behavior in mozilla browsers is caused by css fixed positioning. I noticed this when I was working on the code for frames. The fixed positioning in the frames tests (actually a desirable effect there) seemed to come and go with recent updates, so I checked the version info page. It seems that fixed positioning in mozilla browsers is also related to having the menus display above iframes and other embedded objects. According to the version info,
v5.719:
Dave,
Since its a global property, it looks like fixMozillaZIndex applies to all menus. So, if you have fixMozillaZIndex set to true (as you do in your MainMenu_data.js file), then all menus will be set to fixed positioning by default, so that they can sit above embedded objects. I say "set by default", but I'm wondering if you can override this on a per-menu basis with the position menu property. First, according to the version info blurb, fixmozillaZINdex is a global property, not a menu style property. So you should remove it from your menuStyle and your submenuStyle, and put it at the top of MainMenu_data.js with the other globals (e.g., with _subOffsetLeft). Second, to try to override the effect for your main menu, try setting position="absolute"; in the Main Menu.
If that doesn't work, then we coould try rawcss or onclass/offclass.
Good luck,
Kevin
v5.719:
v5.720:Removed the use of "fixed" positioning by default on Mozilla based browsers. This means that the menu will sit behind Flash and Java Applets so you'll need to declare position="fixed"; for all sub menus that you want to appear on top of HTML Objects
v5.722:Fully reinstated position="fixed" code for Firefox. By default, menus are now positioned absolute in all browsers.
(So it seems it's an option now). It looks to me like fixed positioning must be necessary to make the menus sit on top of embedded objects. So there's a catch-22 here.Added new global property fixMozillaZIndex - Set to true with fixMozillaZIndex=true; will enable menus in Firefox and other Mozilla based browsers to sit on top of IFRAMES, Flash and other HTML Objects
Dave,
Since its a global property, it looks like fixMozillaZIndex applies to all menus. So, if you have fixMozillaZIndex set to true (as you do in your MainMenu_data.js file), then all menus will be set to fixed positioning by default, so that they can sit above embedded objects. I say "set by default", but I'm wondering if you can override this on a per-menu basis with the position menu property. First, according to the version info blurb, fixmozillaZINdex is a global property, not a menu style property. So you should remove it from your menuStyle and your submenuStyle, and put it at the top of MainMenu_data.js with the other globals (e.g., with _subOffsetLeft). Second, to try to override the effect for your main menu, try setting position="absolute"; in the Main Menu.
If that doesn't work, then we coould try rawcss or onclass/offclass.
Good luck,
Kevin
Hi,
Thanks for the indepth, Kevin. With fixMozillaZIndex=true; moved to the global property area, and removed from the styles sections, the menu no longer 'scrolls' in my Firefox 1.0.2 nor in Netscape 7.1
Ruth
Thanks for the indepth, Kevin. With fixMozillaZIndex=true; moved to the global property area, and removed from the styles sections, the menu no longer 'scrolls' in my Firefox 1.0.2 nor in Netscape 7.1
Ruth
Last edited by Ruth on Fri May 20, 2005 9:47 pm, edited 1 time in total.
Did you place the fixMozillaZIndex=true; at the top in the area that has _subOffsetLeft= and so on? That fixed the problem of the menu acting as if it were glued to the 'screen' [that's the only way I can think to describe it, like it was fixed on the outside of the page on the browser screen] instead of being on the page.
Ruth
Ruth
Hi Ruth,
That's actually the problem that is making it fixed. If I have the line included, then it is 'glued' to the screen. When I remove it, it scrolls off the page when the page scrolls (as it should).
I would post an url, but it is still internal and can't be accessed from the internet.
Thanks,
Shawn
That's actually the problem that is making it fixed. If I have the line included, then it is 'glued' to the screen. When I remove it, it scrolls off the page when the page scrolls (as it should).
I would post an url, but it is still internal and can't be accessed from the internet.
Thanks,
Shawn
- davebarnes
- Super Advanced
- Posts: 71
- Joined: Tue Nov 18, 2003 6:09 am
- Location: Denver, CO USA
- Contact:
Still have undesirable behavior at http://www.kokias.com/English/Products_ ... Photo.html
fixMozillaZIndex=true; was made a global property and removed from the menu styles
fixMozillaZIndex=true; was made a global property and removed from the menu styles
Not as far as I can tell, but see this thread for a possible work-around.ShawnO wrote:Has anyone come up with a solution to this problem yet?
Thanks,
Shawn
Kevin
Ok,
Here is what fixed it for me! I used the 5.724 Pre-release and also added the following to the flash:
<PARAM NAME="wmode" VALUE="opaque">
and in the <embed> tag, I added wmode="transparent"
With the 5.724 you don't need to use fixMozillaZIndex either.
With the information that Andy gave to me about the parameters and the 5.724 everything works 100%!
Shawn
Here is what fixed it for me! I used the 5.724 Pre-release and also added the following to the flash:
<PARAM NAME="wmode" VALUE="opaque">
and in the <embed> tag, I added wmode="transparent"
With the 5.724 you don't need to use fixMozillaZIndex either.
With the information that Andy gave to me about the parameters and the 5.724 everything works 100%!
Shawn