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

hide select when dhtml menu overrides

Status
Not open for further replies.

fredes65

Programmer
Mar 2, 2002
9
AU
Hi, Im trying to find out how to get the select elements on my page to hide only when the dhtml menu div clips it meaning I dont want it to hide if the div is not going over the select element. Any clues? Ive seen the microsoft solution but I dont understand how it works????

cheers
fred
 
You have to perform like a hit test to see if the elements are occupying any of the same space. So using offsetX and offsetWidth etc you can get the position and sizes of each, and compare them.

<bb />
 
thanks, do you have any examples of how you would do the test.

cheers
fred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top