javascript thread: Dynamically adjusting WIDTH and HEIGHT for IMG and OBJECT tags?
After the page has loaded, you can check document.body.clientWidth (or
offsetWidth) and document.body.clientHeight (or offsetHeight)
/Robert
-----Original Message-----
From: DANIEL RADU [mailto:radudanielro@y...]
Sent: den 23 augusti 2001 10:03
To: javascript
Subject: [javascript] Re: Dynamically adjusting WIDTH and HEIGHT for IMG
and OBJECT tags?
--- Warrick Wilson <wwilson@f...> wrote:
> I posted this to the howto group as well, but that
> group seems fairly low
> traffic yet, so I thought I might have better luck
> here...
>
> I have a frameset that loads various HTML files.
> I've done the rows and cols
> by percentages here.
>
> I'd like to set up the individual HTML pages to
> accommodate different
> browser sizes, which will lead to different frame
> sizes. In these files, I
> will have images and OBJECT tags, each of which have
> WIDTH and HEIGHT
> values.
>
> Is there some way to figure out what the available
> space is as I load an
> HTML file into a frame? I was trying to
> document.write() stuff, but I can't
> figure out what the available space is. I can do
> screen.width and
> screen.height, but those are not the values I need.
>
> I'm using IE 5.0 and IE 5.5, and will ONLY be using
> those.
>
> Thanks.
>
>
>
> Warrick Wilson
> Fred Systems Ltd.
> mailto:wwilson@f...
>
>
Try with an iframe configured as you want. It's a
simpler way to resize inner pages in an iframe than in
a frame. What have I done was putting three iframes
(top, left, main) that should be remain fixed when the
user resized the browser window. It's working like
this, but with frames did'n work!