I know virtually nothing about javascript coding but I am trying to convert some code to run under Netscape 6.2
I've manged to figure out how to sniff for NS6 (N6=document.getElementById)
but beyond that I'm lost. Here are several lines of code I need to have made compatible with NS6. Can anyone show me what the heck to do?
if (IE) {document.write('<DIV ID="ssm2" style="visibility:hidden;Position : Absolute ;Left : 0px ;Top : '+YOffset+'px ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm2" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (N6) ???????????????????? - lost
Here is another:
if ((IE && ssm2.style.pixelLeft<0)||(NS && document.ssm2.left<0)) {
if (IE) {ssm2.style.pixelLeft += (5%menuWidth);
}
if (NS) {
document.ssm2.left += (5%menuWidth);
}
Out of my league.
Any and all help would be most appreciated.
Thank you.
- Omicron -
Compuset Portal
I've manged to figure out how to sniff for NS6 (N6=document.getElementById)
but beyond that I'm lost. Here are several lines of code I need to have made compatible with NS6. Can anyone show me what the heck to do?
if (IE) {document.write('<DIV ID="ssm2" style="visibility:hidden;Position : Absolute ;Left : 0px ;Top : '+YOffset+'px ;Z-Index : 20;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<LAYER visibility="hide" top="'+YOffset+'" name="ssm2" bgcolor="'+menuBGColor+'" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (N6) ???????????????????? - lost
Here is another:
if ((IE && ssm2.style.pixelLeft<0)||(NS && document.ssm2.left<0)) {
if (IE) {ssm2.style.pixelLeft += (5%menuWidth);
}
if (NS) {
document.ssm2.left += (5%menuWidth);
}
Out of my league.
Any and all help would be most appreciated.
Thank you.
- Omicron -
Compuset Portal