Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    859
    Thanks
    50
    Thanked 6 Times in 5 Posts

    resize a pair of frames

    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?
    The difference between genius and stupidity is that genius has its limits. (Albert Einstein)

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by tpeck View Post
    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:

    Code:
    <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>

  • #3
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    859
    Thanks
    50
    Thanked 6 Times in 5 Posts
    Wow! Does that ever work nicely.

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

    Thanks.
    The difference between genius and stupidity is that genius has its limits. (Albert Einstein)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •