Re: How to access property of a LAYER within Jscript?
From: José Joye (jose.joye_at_KILLTHESPAMSbluewin.ch)
Date: 06/08/04
- Next message: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- Previous message: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- In reply to: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- Next in thread: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- Reply: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 8 Jun 2004 17:55:26 +0200
Thanks for your answer.
This sounds like I'm not using the good reference guide for JavaScript (I'm
using the version 1.3 of Client Script from Netscape).
What will be the correct reference guide to use for writting against new
browser?
As a side note, I was not really trying to update the with of my Layer (this
was just a sample). What I'm hopping to do is to place within a layer a kind
of footer that will stay visible at the end of the window and stay there if
we resize the window or use the scroll bars.
Thanks,
José
"Martin Honnen" <mahotrash@yahoo.de> wrote in message
news:%23nTgouWTEHA.2716@tk2msftngp13.phx.gbl...
>
>
> José Joye wrote:
>
>
> > I'm trying to update the size of a layer within my page as soon as the
> > window is resized. I look at the Jscript ref guide. However, I keep
> > receiving error when executing the script fired at window resize
> > (f_resize_bottom()). It tells me that document.layers["layer_bottom"] is
> > null or not an object.
>
> document.layers is part of the Netscape 4 object model, that object
> doesn't exist in recent Netscape versions (6/7) and neither in any IE
> version.
> If you want to change the CSS inline settings of an element with a
> certain id with IE5+, Netscape 6/7, Opera 7 and other browsers
> implementing the W3C DOM try
> var element;
> if (document.getElementById) {
> element = document.getElementById('elementId');
> if (element && element.style) {
> element.style.width = 440 + 'px';
> }
> }
>
> As for the body onresize to change the width that shouldn't be necessary
> at all if you use static CSS to set
> width: 100%;
> --
>
> Martin Honnen
> http://JavaScript.FAQTs.com/
>
- Next message: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- Previous message: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- In reply to: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- Next in thread: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- Reply: Martin Honnen: "Re: How to access property of a LAYER within Jscript?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|