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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popout menu <Div> won't line up properly

Status
Not open for further replies.

vb6novice

Programmer
Sep 23, 2002
288
US
My page's left column menu is a table. Some rows contain a link. Some rows have an OnMouseOver event to show a <Div> as a popout menu. The show <Div> doesn't work properly. The <Div>'s Style attribute for Position is set to Absolute. I can set the Left and Top values to make the first <Div> appear in the desired place, but the second one always shows up at the bottom of the page, regardless of its Top value.

I'm trying to set it so that each <Div> shows up just to the right of the <tr> that has the onmouseover so that the top of the <Div> is the same as the top of the row that the mouse is over (like most popout menus do).

My second problem: Each popout <Div> contains a table. After the <Div> disappears due to the Onmouseout, some of the table borders still appear on the page. Why might that be happening?

All help is appreciated.
 
The script needs to consider object.offsetHeight and object.offsetWidth to get it accurate. Most scripts that I have seen do not, and I would guess that is the glitch.

----------
I'm willing to trade custom scripts for... [see profile]
 
stormbind,

Sorry, I can't help with a logo. Where's a good place to learn more about object.offsetheight and .offsetwidth ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top