...

View Full Version : resize a pair of frames



tpeck
12-10-2006, 12:59 PM
I have a page with two horizontal frames. The top frame covers 90% of the window, and the bottom frame 10%.

I would like to be able to have a user hit a button on the lower frame to resize it up and down at will, say, lift the lower frame to 50% and then back down to its original position at 10%.

Is this doable? If so, does anyone know how?

Arty Effem
12-10-2006, 08:16 PM
I have a page with two horizontal frames. The top frame covers 90% of the window, and the bottom frame 10%.

I would like to be able to have a user hit a button on the lower frame to resize it up and down at will, say, lift the lower frame to 50% and then back down to its original position at 10%.

Is this doable? If so, does anyone know how?Try inserting this script at the required location of the link:


<script type='text/javascript'>
if(parent.document.body)
{
parent.document.body.rows="50%,*";
framer=parent.document.body;
document.write('<A HREF="#" onclick="framer.rows=(framer.rows==\'50%,*\')?\'90%,*\':\'50%,*\';return false">Resize Frames</A>');
}
</script>

tpeck
12-11-2006, 02:32 AM
Wow! Does that ever work nicely.

Can't tell you how long I searched to try to find a workable answer.

Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum