Re: How to access property of a LAYER within Jscript?

From: José Joye (jose.joye_at_KILLTHESPAMSbluewin.ch)
Date: 06/08/04


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/
>



Relevant Pages

  • Re: How to access property of a LAYER within Jscript?
    ... 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). ... we resize the window or use the scroll bars. ...
    (microsoft.public.frontpage.client)
  • Re: How to access property of a LAYER within Jscript?
    ... > using the version 1.3 of Client Script from Netscape). ... > What will be the correct reference guide to use for writting against new ... > we resize the window or use the scroll bars. ...
    (microsoft.public.frontpage.client)
  • Re: How to access property of a LAYER within Jscript?
    ... > using the version 1.3 of Client Script from Netscape). ... > What will be the correct reference guide to use for writting against new ... > we resize the window or use the scroll bars. ...
    (microsoft.public.scripting.jscript)
  • McAfee Firewall 3.0, also Netscape 7.0
    ... unfiltered access. ... Netscape 7.0, which I recently upgraded to, ... shuts itself down when I click on certain websites, ... any Netscape window I have closes. ...
    (comp.security.firewalls)
  • Re: PCs that come with linux already installed
    ... Navigator and a window for Netscape Messenger. ... and for writing to the sound card to ... When I installed Debian some years ago, most of the hassle was in trying ...
    (comp.os.linux)

Loading