PDA

View Full Version : I need a little help with javascript.


Slynderdale
12-03-2002, 04:53 PM
Can some one help me out that's decent in javascript?
I need the below code fixed so it works for netscape, I already did internet explorer, thanks.

<SCRIPT Language="Javascript1.2">
<!--
var ns4=document.layers?1:0;
var ie4=document.all?1:0;
var ns6=document.getElementById&&!document.all?1:0;

function EnterContent(StatusContent){
if(ie4){document.tooltip.SetVariable("enterhere", StatusContent);}
else if (ns6) {}
else if (ns4) {}
}

function makeStatic() {
if (ie4) {flashstat.style.pixelTop=document.body.scrollTop+ document.body.clientHeight-50;}
else if (ns6) {document.getElementById("flashstat").style.top=;}
else if (ns4) {eval(document.flashstat.top=);}
setTimeout("makeStatic()",0);
}

function moveflashstat(){
if (ns6||ie4||ns4)
makeStatic();
}

window.onload=moveflashstat;
//-->
</SCRIPT>