I have a problem whit this script. It is compatible with IE but isn't with
Firefox.
The error are:
1) "e has no properties" at----- "if(e.pageX || e.pageY) {"
2) "document.getEl ementById()" at------>
"popText0.style .visibility="vi sible"
Help me please
Serena
//
// MOUSE position
//
var posX = 0;
var posY = 0;
function setPos () {
posX = 0;
posY = 0;
if (!e)
var e = window.event
if (e.pageX || e.pageY) {
posX = e.pageX
posY = e.pageY
}
else if (e.clientX || e.clientY) {
posX = e.clientX + document.body.s crollLeft
posY = e.clientY + document.body.s crollTop
}
return
}
document.onmous emove = setPos;
//
// MENU'
//
var popShow = new Array (false, false, false);
function popup (who) {
popText0.style. visibility = "hidden";
popText1.style. visibility = "hidden";
popText2.style. visibility = "hidden";
topbutton0.styl e.visibility = "visible";
topbutton1.styl e.visibility = "visible";
topbutton2.styl e.visibility = "visible";
if (!popShow[who]) {
if (( who == 0 ) || ( who == 1 ))
{
eval("popText"+ who+".style.lef t = posX + 10");
eval("popText"+ who+".style.top = -38");
}
else
{
eval("popText"+ who+".style.lef t = posX + 10");
eval("popText"+ who+".style.top = -38");
}
eval("popText"+ who+".style.vis ibility = \"visible\"" );
for(var count in popShow)
popShow[count] = false;
popShow[who] = true;
eval("topbutton "+who+".style.v isibility='hidd en'");
}
else
popShow[who] = false;
return;
}