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:29

Menu position changes after scroll down with NS & Mozill


Poster: georgi
Dated: Friday May 7 2004 - 14:42:26 BST

Hi,

My menus popout when you mouse over a button. The menus should popout next to the associated button, so I set top and left positions accordingly. All works as expected in various browsers except in the case of NS and Mozilla. With these browsers, if you do not scroll down the page, the menu position is fine. But if you scroll down and then mouse over a button, the menus no longer pop out in the correct postiion. They pop out much lower down the page. This problem does not occur with IE or Opera. Any suggestions?

Test site is:
http://cfdev.rsna.org:81
Menus are associated with the buttons on LEFT SIDE of page.


Poster: Ruth
Dated: Friday May 7 2004 - 18:00:17 BST

Try this sample http://www.milonic.com/menusample24.php This attaches the menu to the image, and should work for what you want. I think what's happening in Netscape is that once you set a position then even if you scroll down Netscape doesn't read the page as having the new top as 0? Not sure on that. Anyway, I think this will work.

Ruth


Poster: John
Dated: Friday May 7 2004 - 22:38:55 BST

Before we all go any further with this, georgi, you first need to upgrade your software. You are running RC11 (a very early beta), the current version is 5.16 release. Roughly 60 versions down-level, and not supported.

Get the current version at http://milonic.com/, read the included files as many changes have been made, and then come on back if you're still having problems.


Poster: Ruth
Dated: Saturday May 8 2004 - 1:50:23 BST

:oops: I never even noticed the link. Georgi, you do have to upgrade because I doubt that menu sample will do what it's designed with that old beta version

Ruth


Poster: georgi
Dated: Monday May 10 2004 - 14:45:18 BST

Thanks all for the quick support. I downloaded ver. 5.16 and changed my html and menu data file per the sample. My original problem is gone, but now the menu doesn't work with Opera 6.5. My previous setup worked fine with Opera 6.5. After checking over everything, I browsed to milonic.com and found that the menus on the Milonic page don't work with Opera 6.5 either. Whats up with Opera?

Test site: http://www.cfdev.rsna.org:81/


Poster: Ruth
Dated: Monday May 10 2004 - 20:47:23 BST

Your link is incorrect, you can't get there with the www in it. I used the first link you posted. I have opera 6.05 and everything works fine. In 7.1 I get an error on mouseover of the left side menu which says the event thread is onmouseout and there's an {event handler trampoline} Sorry, but it's not something I know anything about.

Ruth


Poster: georgi
Dated: Tuesday May 11 2004 - 14:38:41 BST

You're correct about the link. Sorry about that.

As for using Opera 6.05 and ver. 5.16 of the program, I did some testing and found that if "Identify as Opera" is selected under Opera's File Menu, Quick Preferences, then the milonic menus on my test site (http://cfdev.rsna.org:81) and on the milonic.com page don't work. If I select any other setting, the menus work. If I use the old program with Opera 6.05 it works even if I select "Identify as Opera" (see http://192.203.125.55/). Does it function the same for you?

As for Opera 7, I tested with versions 7.11 and 7.23 and didn't see the problem you encountered: {event handler trampoline}. The only thing I can think of is that there was one link on the left side of my test page where I didn't change the HTML code by adding the image ID to the popout function. That was the link with the camera icon. I changed it now. Can I trouble you to check it again to see if you still get the error.
If you do get the error, does it say where the error occurred (ex. external javascript line number xxx)?

Thx again for your help.


Poster: Ruth
Dated: Tuesday May 11 2004 - 21:26:01 BST

I'll check when I can get there, now I'm getting a "cannot connect to server" message in opera and "cannot find server" in IE.

Ruth


Poster: John
Dated: Tuesday May 11 2004 - 21:43:52 BST

FWIW, so am I.


Poster: georgi
Dated: Tuesday May 11 2004 - 22:48:05 BST

Sorry, It should be working now.

Thanks!


Poster: Ruth
Dated: Wednesday May 12 2004 - 1:16:24 BST

Opera - Version 7.11 Build 2887 Platform Win32 System Windows 98

I'm still getting the onmouseout error with the first load and no submenus. But if I reload the page, everything works and no error appears. Perhaps you're not getting the error because the page is cached?
Code:
Event thread: onmouseout
Error:
name: ReferenceError
message: Statement on line 16: Reference to undefined variable: No such variable '_menuCloseDelay'
Backtrace:
  Line 16 of linked script http://cfdev.rsna.org:81/milonic_v5/mmenudom.js
    _MT = setTimeout("closeAllMenus()", _menuCloseDelay);
  In unknown script
    popdown();
  At unknown location
    {event handler trampoline}


Poster: John
Dated: Wednesday May 12 2004 - 15:02:55 BST

With Opera 7.23 XP Pro I'm not seeing any errors at all.


Poster: georgi
Dated: Wednesday May 12 2004 - 15:15:08 BST

1. Opera 7.11 - error with the first load and no submenus
I tested with Opera 7.11 on Windows XP and Opera 7.23 on Windows 2000. I cleared cache and tested with various settings for "Identify as ___" in Opera's Quick Preferences but still can't duplicate the error.

I checked my data file for "_menuCloseDelay" as this is specified in the error message. I found it at the beginning of the file. See excerpt below:

_menuCloseDelay=550
_menuOpenDelay=150
_subOffsetTop=0
_subOffsetLeft=0
_scrollAmount=3 // Need for NS 4.x
_scrollDelay=20 // Need for NS 4.x
//_followSpeed=0
//_followRate=40

I had ";" at the end of each line above but I noticed the sample data file didn't, so I removed them. Also, I don't think follow speed and follow rate are needed for my current application so I commented them out. I doubt if these changes will make a difference though. Does anyone have any suggestions?

2. Opera 6.05 - no submenus
Was anyone able to duplicate the problem I found with Opera 6.05 when "Identify as Opera" is set in Opera's Quick Preferences?

Thanks


Poster: John
Dated: Wednesday May 12 2004 - 15:24:07 BST

georgi wrote:
I had ";" at the end of each line above but I noticed the sample data file didn't, so I removed them.

Put 'em back! ;)

The sample files need some updating.

Basically a line should look something like this...
Code:
aI("text= Hello ;url=http://milonic.com/;status=Best DHTML menu around;");

I added the   so you can see the little quirk there - the one after "Hello" with the apparent 2 ;; is correct, one for the   and the other to close the text parameter - and the closing sequence of ;"); .


Poster: Maz
Dated: Wednesday May 12 2004 - 15:35:05 BST

There is a new menu update, download it today :)

maz


Poster: Ruth
Dated: Wednesday May 12 2004 - 16:06:54 BST

I have this feeling that it might have to do with loading of the scripts or maybe just the page in general, because it only happens on mouseout and as I said if I reload then it's fine. That would seem to imply that somehow the file is not fully loaded so on mouseover I'm not getting the submenu and then when I mouseout it gives that error about menu close delay. After all if there's no submenu then there's no menu to 'close' But, that's just a nebulous idea since I've no clue about javascript and such. I'm on 98se, so that also may have something to do with it. I wasn't able to duplicate the other item.

Ruth

opera


Poster: leopold.winckelmans
Dated: Wednesday May 12 2004 - 21:22:37 BST

I seem to have the problem with the submenus in Opera:
Version 6.06; Build 1145; Platform Win32; System Windows 98; Java
Sun Java Runtime Environment 1.3.

http://www.sintjanberchmanscollege.be/a ... dexaso.htm

When identified as Opera nothing works; when identified as Mozilla or IE, the submenus appear and work correctly, however: the submenu always opens on the right, so the last submenu is only partially visible.

Pol


Poster: John
Dated: Wednesday May 12 2004 - 21:43:16 BST

A few corrections for you to try...

1. Remove scriptpath="navigatie2/"; from your HTML. Hasn't been used in ages!

2. Items that are zero (not used) can be removed from the code; e.g., borderwidth="0";.

3. Items with numeric parameters should not have ""; e.g. separatorsize="1"; should be separatorsize=1;.

4. Some of the items in your definitions are missing the closing ';'; e.g., fontweight="bold" should be fontweight="bold";.

5. Try updating Opera. I believe current is 7.23. We've had some users having problems with older versions and the upgrade fixed (most) things.

Let us know.


Poster: leopold.winckelmans
Dated: Wednesday May 12 2004 - 21:57:19 BST

Thanks John !

I did everything you suggested (except for the upgrade), but no changes yet. About the quotes: in the latest menusample I downloaded today, some of the numbers are still quoted, some are not !

Pol


Poster: John
Dated: Wednesday May 12 2004 - 22:24:41 BST

leopold.winckelmans wrote:
Thanks John !

I did everything you suggested (except for the upgrade), but no changes yet. About the quotes: in the latest menusample I downloaded today, some of the numbers are still quoted, some are not !

You're welcome. Hope the upgrade helps out.

As for the quotes thing, we're aware of the sample problems. It's just finding the time with everything else that's on "the list". Basic programming rules apply - if it's numeric don't try to make it a string! :D


Poster: leopold.winckelmans
Dated: Wednesday May 12 2004 - 22:30:56 BST

I upgraded to Opera 7.50 and everything seems to work fine now. Thanks again!


Poster: Ruth
Dated: Thursday May 13 2004 - 0:51:48 BST

The browser is doing something when you choose identify as opera. I don't know if they left something out of the program or what, but in 6.05 if you check Milonic, you get a bunch of little tiny white boxes as a submenu and then it freezes, if you try it in 7.11 you get the submenus but all color is gone, they are white. So, I have to believe that it's something the browser does when it gets identified as opera.

Ruth