Forum Moderators: open

Message Too Old, No Replies

Help with NN6 sniffer script

         

crobnson

2:33 pm on Jan 11, 2006 (gmt 0)

10+ Year Member



Hello,

Due to a problem with NN6 using my #main margin incorrectly, I decided to use js to fix the problem. The following js works in WIN98 but appears to not work in WIN/XP. Is there a way to change this script to fix this or is there a different one that I should use. Thank you.

<script type="text/javascript" language="JavaScript">
<!--
// test Netscape Navigator 6, if yes: give position:absolute for #main
if (navigator.userAgent.indexOf("Netscape6")!= -1) {
document.write('<style
type="text\/css"\>#main\{position:absolute;\}<\/style\>') }
//-->
</script>

crobnson

3:20 pm on Jan 11, 2006 (gmt 0)

10+ Year Member



I figured out the problem and I am really embarrassed. Wrapping is a no, no.

Thanks anyways.