Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Relative/Absolute Coordinate Issue with JS popup menu?

Status
Not open for further replies.

danielh68

Technical User
Jul 31, 2001
431
US
Hi,

I just started building a site ( I have already approached a problem. I designed the site with a centered table and for this particular piece I like it. Anyhow, I decided to implement a popup menu, which works fine except when I stretch the browser window. When that occurs, the sub menus refuse to accomdate the new coordinates.

My question is this: how do I make the sub menus positioning absolute to the table and not the browser?

Your expertise is very much appreciated.

Thanks,
Dan
 
I have done this with IE using element.offsetParent and recurse up the tree to the body element. For each element u add the element.clientOffsetX and clientOffsetY or something like that. u can find out exactly on MSDN

Good luck
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top