netscape resize fix script problem

wxdqz

New Member
After many attemps to use the Dreamweaver netscape resize fix script, I found out that that script didn't work properly if the page contains embedded .swf files. Instead I found this script that works great except when you try to resize the page to a smaller window than the actual page's design. In that case the reload process gets looped and it just reloads, reloads and reloads...

Does any javascript guru see what I could do to this script to prevent that? thanks for reading this...


<script language="JavaScript">
<!--
function P7_N4FlashFix(a) { //1.1 by PVII
if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
if(a){document.P7n4_w=innerWidth;document.P7n4_h=innerHeight;setInterval("P7_N4FlashFix(false)",100);
}else if(document.P7n4_w!=innerWidth||document.P7n4_h!=innerHeight){location.reload();}}
}
P7_N4FlashFix(true);
//-->
</script>
 
Back
Top