This will fix a Netscape problem (I think fixed in version 6) where if you resize a window with layers in it, the layers become about a million pixels high, and five pixels wide. This script sniffs out Netscape, and if it detects a window resize, makes the browser reload the window.


<script language="JavaScript">
<!--
function reloadNS(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadNS; }}
else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadNS(true);
// -->
</script>


Back