Posted by rf on 11/14/07 00:56
"Andrι Gillibert" <tabkanDELETETHISnaz@yahodeletethato.fr> wrote in message
news:op.t1q65fci7pu1mk@andre...
> a-ok-site wrote:
>
>> I am in the process of trying to build a template for my web site
>> [...]
>
> Why the h*ll did you use this awful script (on <http://a-ok-site.com/>)?
>
>> function MM_reloadPage(init) { //reloads the window if Nav4 resized
>> if (init==true) with (navigator) {if
>> ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
>> document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
>> onresize=MM_reloadPage; }}
>> else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
>> location.reload();
>> }
>> MM_reloadPage(true);
>
> This has the effect of reloading the page in Netscape 4.x (and no other
> browser) when the browser window is resized. This is totally useless as
> the reloaded page is identical to the previous one.
This is to fix a bug in some netscape version from way back in last century.
NS3 or 4 IIRC. It would not repaint the canvas correctly after a resize.
Such cargo cult stuff is one of the prime indicators of Dreamweaver. Along
with javascript rollovers instead of CSS.
--
Richard.
Navigation:
[Reply to this message]
|