IE window expands on rollover

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
stein
Advanced
Advanced
Posts: 12
Joined: Mon Apr 19, 2004 9:02 pm
Location: Juneau, Alaska
Contact:

IE window expands on rollover

Post by stein »

http://www.akdemocrats.org Milonic 5.721

In IE6 the menu has been showing mysterious behaviour relating to:

mouseovers of the menu and the subsequent addition of window space...
-- identified by the immediate appearance of a horizonal scroll at the bottom and
-- the addition of vertical space visible by the shrinking of the vert scroll block.
-- it does not resize the window per say, it just expands the space it 'could' take up.

example: go to http://www.akdemocrats.org and then roll over Representatives to cause the 'expansion', then if you click on Representatives to open the menu, the expanded window reverts to correct size! It will only work with the original item w/mouseover...

Any ideas? Will post code on request.
'Montani Semper Liberii'
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

You need to move the call for your menu files [milonic, mmenudom, mmenuns4, menu_data.php, contextmenu.js] out of the table and put them immediately after the body tag. That gets rid of the bottom scroll bar and the extra 400 or so pixel width of empty space that was on the right.

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I'm not a PHP person, but I am a bit unsure about this _data call...

Code: Select all

<SCRIPT language=JavaScript src="/menu/menu_data_.php?url=http://www.akdemocrats.org/" type=text/javascript></SCRIPT>
John
stein
Advanced
Advanced
Posts: 12
Joined: Mon Apr 19, 2004 9:02 pm
Location: Juneau, Alaska
Contact:

Post by stein »

Hi, thanks for the input. The PHP code is working nicely although I've not really documented it here in the forums. I've been using this system for some time and I'll sum it up:
-- I use my menu_data (renamed to menu_data_) in a PHP file so that I can run functions, pass variables and render strings inside the javascript data then the PHP engine spits out compliant html/javascript to be parsed by the rest of your fine menu system.

BTW - taking it out of the table did nicely to fix the issue. Thanks alot.
'Montani Semper Liberii'
Post Reply