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("<DIV id='Layer1' style='position:absolute; left:287px; top:112px; width:44px; height:14px; z-index:1; visibility: hidden' onmouseout='hideit (this.id)'>"
;
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="hidden";
else if (document.getElementById);
document.getElementById(param).style.visibility="hidden";
}
}
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("<DIV id='Layer1' style='position:absolute; left:287px; top:112px; width:44px; height:14px; z-index:1; visibility: hidden' onmouseout='hideit (this.id)'>"
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="hidden";
else if (document.getElementById);
document.getElementById(param).style.visibility="hidden";
}
}