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

hiding all elements of an array

Status
Not open for further replies.

MikeDee

Programmer
Aug 2, 2001
19
0
0
GB
Hi Everyone,

Im trying to hide an array of many elements in a Layer. Yes, the below works but only with the first element in the array. When I mouse out the first element the layer gets hidden so Im not able to cursor over elements below the first one.

So I added following thinking it would resolve the problem:-

if (event.toElement != param &&
param.contains(event.toElement) == false)

but now it doesnt work at all???

---------------------

document.write(&quot;<DIV id='Layer1' style='position:absolute; left:287px; top:112px; width:44px; height:14px; z-index:1; visibility: hidden' onmouseout='hideit (this.id)'>&quot;);



function hideit(param)
{
if (event.toElement != param &&
param.contains(event.toElement) == false)
{
if (document.layers) document.layers[param].visibility='hide';
else if (document.all) document.all[param].style.visibility=&quot;hidden&quot;;
else if (document.getElementById);
document.getElementById(param).style.visibility=&quot;hidden&quot;;
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top