Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: OT: Frames, Netscape and resizing prob!!!
From: moo
Date: Wed, 23 Aug 2000 19:29:18 +0100

it seems that the problem is mostly with early versions of netscape 4-

this article describes the problem
http://www.webreference.com/dhtml/diner/resize/
> It seems we were victims of the "correlation vs. causation" fallacy. The
> resize event seemed to be related to the load event, because it would fire
> at the same time. In reality, the resize is not caused by the load event. It
> is caused by the appearance or removal of scrollbars:
>
> Whenever a scrollbar is sized, the resize event is fired. Scrollbars are sized
> when the page loads, so the load/resize event occur
> together. If no scrollbars exist, the resize event is not fired. This explains
> the "certain cases where the bug doesn't kick in."
>
> The resize event is, of course, fired correctly as well, when the browser
> window is resized by the user.

this is the script "nnresize fix" command in DW2 inserts into the document
however- there are simplified one-line versions of this at
http://www.webreference.com/dhtml/diner/resize/resize4.html

> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <script>
>
> //tmtC_NNresizeFix
> if (document.layers) {
> origWidth = innerWidth;
> origHeight = innerHeight;}
> function reDo() {
> if (innerWidth != origWidth || innerHeight != origHeight)
> location.reload();}
> if (document.layers) onresize = reDo;
> //tmtC_NNresizeFixEnd
>
> </script>
> </head>

HTH
moo


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: OT: Frames, Netscape and resizing, Marc Pidoux

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]