S
stanguru
what is this statement doing?
if (event.toElement && event.toElement.id.slice(0, 7) != "Options")
and how can i replace with a cross-browser functionality? (manyly FF)
its part of a menu, particularly a menuoff function
i am trying to make the menu cross-browser ok, but i dont wanna rewrite
the whole thing, i am figuring out 1 piece at a time
i understand:
it is IE specific and event is only an IE function
the != is done first
function MenuOff (z)
{
var Options;
var Seq;
var i;
if (event.toElement && event.toElement.id.slice(0, 7) !=
"Options")
{
// Get associated menu options (a <div>)
Seq = z.getAttribute("Id").slice(4, 6);
//Options = document.getElementById('Options') + Seq;
Options = document.all["Options" + Seq];
// Hide the menu options
Options.getAttribute("Style").visibility = "hidden";
}
}
TIA
if (event.toElement && event.toElement.id.slice(0, 7) != "Options")
and how can i replace with a cross-browser functionality? (manyly FF)
its part of a menu, particularly a menuoff function
i am trying to make the menu cross-browser ok, but i dont wanna rewrite
the whole thing, i am figuring out 1 piece at a time
i understand:
it is IE specific and event is only an IE function
the != is done first
function MenuOff (z)
{
var Options;
var Seq;
var i;
if (event.toElement && event.toElement.id.slice(0, 7) !=
"Options")
{
// Get associated menu options (a <div>)
Seq = z.getAttribute("Id").slice(4, 6);
//Options = document.getElementById('Options') + Seq;
Options = document.all["Options" + Seq];
// Hide the menu options
Options.getAttribute("Style").visibility = "hidden";
}
}
TIA