JohnnyBeta
Technical User
I have a menu which stays in the middle of the screen when the page is scrolled down or up,
which is what I want.
It works with IE 6 or 7, but not with Moz or FF2.
Why does it not work with FF ?
Here's the script:
function setVariables() {
if (navigator.appName == "Netscape") {
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
}
function checkLocation() {
object="object1";
yy=eval;
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
Thanks for any help.
which is what I want.
It works with IE 6 or 7, but not with Moz or FF2.
Why does it not work with FF ?
Here's the script:
function setVariables() {
if (navigator.appName == "Netscape") {
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
}
function checkLocation() {
object="object1";
yy=eval;
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
Thanks for any help.