Hi,
That's the way it is. NS can't change image-size after it has rendered,
that's why www.richardinfo.com looks so different when viewed with NS4.
There are several workarounds, that rely on having many layers with the
image at several sizes, and show/hiding or using zIndex, or as you say,
re-writing the layer with different params - this causes some flashing in
the image though.
Cheers,
Richard Bennett
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to DynAPI2.53)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi
----- Original Message -----
From: "Dougal Campbell" <[EMAIL PROTECTED]>
To: "DynAPI-Help" <[EMAIL PROTECTED]>
Sent: 18 July, 2001 21:25
Subject: [Dynapi-Help] Change image size in NS4?
> This is not DynAPI specific, but can Netscape 4.x change the size of an
> image dynamically? If I do something like:
> document.images['myimage'].width = 30
> It works in IE5.5, but not in NS4 (haven't tried other versions yet).
> Looking at my O'Reilly Javascript book, it says that Image.width is
> read-only, so I suspect that's my problem and that IE just made it
> read/write to be cool.
>
> Is the only way to alter image size in NS4 to re-write the document
> HTML, adding "height" and "width" to the img tag? I'm hoping there's a
> simpler solution, because this is something I'm trying to modify in
> somebody else's code, and I want to keep the changes as low-key as I
> can. In fact, I'll just declare this feature of our application IE-only
> if it's much more work in NS.
>
> --
> Ernest MacDougal Campbell III, MCP+I, MCSE <[EMAIL PROTECTED]>
> http://dougal.gunters.org/ http://spam.gunters.org/
> Lumber Cartel Unit #1654 (tinlc): http://come.to/the.lumber.cartel/
> This message is guaranteed to be 100% eror frea!
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help