470,619 Members | 1,934 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

Help, bizzare Mozilla absolute position <div> problem

In the web site http://greywolfdesign.com , there is a pop-up menu (when
mouse over 'Portfolio' menu item), it always works well when using IE (6).

However, when using Mozilla 1.6, the popup works well for all the pages
except the 4 pages which can be opened by click the menu link in the
popup. In these four pages, the popup will always be shown at the
leftmost of its parent div (flow) instead of under the 'Portfolio' menu

When tracing the javascript code, I found the the ....style.left and
....style.top cannot be set a value, and it causes the problem. However,
for all other pages, the values can be set.

36 function showPopup(id, menuid) {
37 clearTimeout(mTimeout[id]);
38 var loc = getElementPosition(menuid);
39 var popup = document.getElementById(id);
40 popup.style.position = "absolute";
41 //
42 popup.style.top = loc.top + 15;
43 //
44 popup.style.left = loc.left;
45 //
46 popup.style.display = 'block';
47 }

That's the statements 42, 44 don't work in the problem four pages, but
they work for all other pages. The differents is the four pages may have
a few dreamweaver created javascript routines....

Or can it be a bug of Mozilla?
Jul 20 '05 #1
1 2787
nick <nb***@nospam.hotmail.com> wrote:
When tracing the javascript code

I suggest posting to a js group.

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Gustaf Liljegren | last post: by
7 posts views Thread by Dario de Judicibus | last post: by
4 posts views Thread by Tim Sheets | last post: by
1 post views Thread by drowned | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.