Computing.Net > Forums > Web Development > Drop down menu in Netscape

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Drop down menu in Netscape

Reply to Message Icon

Name: priti
Date: January 11, 2005 at 14:16:27 Pacific
OS: Win 2000 Prof.
CPU/Ram: P3
Comment:

Hi,
I am developing a website. I have created dropdown menu in it. It works fine in IE. In netscape 7.0 it gets displayed right below the menu button while i want that next to the menu button.
Here is the Javascript code:
function Menu(id) {
if (!document.getElementById) return;
inmenu=true;
oldmenu=lastmenu;
lastmenu=id;
if (oldmenu) Erase(oldmenu);
x=document.getElementById("menu-" + id);
obj = document.getElementById(id);
obj.style.left= x.offsetLeft + x.offsetWidth + (-12);
obj.style.top= x.offsetTop + 185;


obj.style.visibility="visible";
obj.style.backgroundColor="#CC6699";
obj.style.width="100px";
}

I need help on figuring out the position for netscape browser.
I know that IE measures offsetLeft and offsetTop properties from edge of the table cell while Netscape measure it from the edge of the browser window. (Pl. correct me if I'm wrong.)
Thanks.
rita




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Create a Web Page Back Bu... How to embed streaming mp...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Drop down menu in Netscape

Drop down Menu problem www.computing.net/answers/webdevel/drop-down-menu-problem/292.html

Dreamweaver Drop Down menu problem www.computing.net/answers/webdevel/dreamweaver-drop-down-menu-problem/3701.html

Drop down menu www.computing.net/answers/webdevel/drop-down-menu/1213.html