You are here: Re: Page centered in IE7 but not in FF2.0 « HTML « IT news, forums, messages
Re: Page centered in IE7 but not in FF2.0

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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация