Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: changing frame height at runtime


Message #1 by "arun" <arun@l...> on Tue, 25 Jun 2002 14:30:39 +0530
Hi there,
Thanks very much for your help. I am going to implement it right now.

I am looking for a peace of code to upload automatically a certain file
from my pc to a www.web.site.com could you help me this?
Many many thanks
joe

-----Original Message-----
From: Warrick Wilson [mailto:wwilson@f...] 
Sent: Tuesday, June 25, 2002 5:05 PM
To: javascript
Subject: [javascript] RE: changing frame height at runtime

The code in the following snippets illustrates what you need...

resizetest.html:

<html>
<head>
<script>
var iCount = 0;
function SetSize() {
   if ((iCount % 2) == 0)
      document.getElementById("fInner").rows = "60%,40%";
   else
      document.getElementById("fInner").rows = "34%,*";
   iCount++;
}

</script>
</head>
<frameset id=fOuter framespacing="0" border="0" cols="150,*"
frameborder="0"
onload="setInterval('SetSize()', 5000)">
  <frame name="left" scrolling="no" noresize target="rtop"
src="blue.html"
marginwidth="0" marginheight="0">
  <frameset id=fInner rows="34%,*">
    <frame name="rtop" target="rbottom" src="red.html" marginwidth="2"
marginheight="0" scrolling="no">
    <frame name="rbottom" src="yellow.html" marginwidth="2"
marginheight="0"
scrolling="auto">
  </frameset>
</frameset>
</html>

red.html:
<html>
<head></head>
<body bgcolor="red">
</body>
</html>


blue.html:
<html>
<head></head>
<body bgcolor="blue">
</body>
</html>


yellow.html:
<html>
<head></head>
<body bgcolor="yellow">
</body>
</html>


Save to the 4 files, and launch resizetest.html with your browser (I
tested
quickly with IE 5.x). You should get the two rows changing every 5
seconds.


Warrick Wilson
mailto:wwilson@f...



> -----Original Message-----
> From: arun [mailto:arun@l...]
> Sent: Tuesday, June 25, 2002 5:01 AM
> To: javascript
> Subject: [javascript] changing frame height at runtime
>
>
> hi,
>
> Is that possible to change the height of th frame at runtime.
> Below is the
> code for creating the frame.
>
> <frameset framespacing="0" border="0" cols="150,*" frameborder="0">
>   <frame name="left" scrolling="no" noresize target="rtop" src=""
> marginwidth="0" marginheight="0">
>   <frameset rows="34%,*">
>     <frame name="rtop" target="rbottom" src="" marginwidth="2"
> marginheight="0" scrolling="no">
>     <frame name="rbottom" src="" marginwidth="2" marginheight="0"
> scrolling="auto">
>   </frameset>
> </frameset>
>
> In the runtime i want to change the height of the frames rtop
> and rbottom
> (i.e.<frameset rows="34%,*">). Is there a property to access it...
>
> with regards,
> arun
> Lucid Software ltd.
> with regards,
> arun
> Lucid Software ltd.
>
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/th
> eprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/th
> eprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/th
> eprogramme
> r-20
>



---

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