Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: How to resize a frame dynamically


Message #1 by "Tanuj Rastogi" <t.rastogi@a...> on Wed, 15 May 2002 06:46:51
Around 370 if she books now
----- Original Message -----
From: "Chris Scott" <chris@e...>
To: "javascript" <javascript@p...>
Sent: Wednesday, May 15, 2002 5:56 PM
Subject: [javascript] Re: How to resize a frame dynamically


> Hi Tanuj,
>
> > I have a document that uses frames. It has to row of frames and the
first
> > row has two columns very much in this manner
> >
> > Frame 1 | Frame 2
> > ---------------------------
> >    Frame 3
> >
> >
> > What I want to do is have a JavaScript function in document contained in
> > Frame 3 which when called resize the first row to (1,*) or in other
words
> > make Frame 1 and Frame 2 almost disappear.
> >
> > Also I don't have names for the Framesets.
>
> Assuming a frameset something like...
>
> <frameset rows="50%,50%">
>  <frameset cols="50%,50%">
>   <frame src="frame1.asp" name="topleft">
>   <frame src="frame2.asp" name="topright">
>  </frameset>
>  <frame src="frame3.asp" name="bottom">
> </frameset>
>
> The following will work for IE/NS6...
>
> function ResizeFrames(){
>     var
oFramesets=window.parent.document.getElementsByTagName("frameset");
>     oFramesets.item(0).rows="1,*";
> }
>
> HTH,
>
> Chris
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>


  Return to Index