Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic resize of frame

Status
Not open for further replies.

itsita001

Programmer
Nov 6, 2002
21
IL
How can i have a frame start out at a 100%, then slowly, slowly go up (get smaller), while the bottom frame increases utnil the top frame reaches 15% and teh bottom frame is at 85%. Then only load the bottmo frame.
Hope you can hrlpo me out....
 
Can anyone please help me out with this, been looking for an answer for a long time, but not getting any....
 
This should do it, but only in IE:

<script>
var h=0;
function init(){
if(h<85){
document.getElementById(&quot;fs&quot;).rows=&quot;*,&quot;+ ++h + &quot;%&quot;;
setTimeout('init()',50);
}
else{
window.fbottom.location.href='about:new page';
}
}
</script>
<frameset rows=&quot;*,0%&quot; id=&quot;fs&quot; onload=&quot;init()&quot;>
<frame name=&quot;ftop&quot; src=&quot;about:top&quot;>
<frame name=&quot;fbottom&quot; src=&quot;about:bottom&quot;>
</frameset> Adam
 
Thanx, it worked, but how would i maket it load the page without the effect happening when refreshing, and when using the back button...????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top