SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2002
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question resize a window with frames

    Hi !

    I would like to resize a window with frames. I did the same thing with a window without frames with this code:

    function stretch(y,yfinal)
    {
    if (document.body.clientHeight < yfinal)
    {
    theHeight = document.body.clientHeight + y;
    window.resizeTo(323,theHeight);
    }

    if (theHeight < yfinal)
    {
    str="stretch(" + y + "," + yfinal + ")";
    setTimeout(str, 20);
    }
    }

    this code stretches the height of the window, but not in one time, it does it smoothly. How can I do the same thing with frames ?

    Filipe Lopes.

  2. #2
    SitePoint Addict
    Join Date
    Mar 2002
    Posts
    327
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: resize a window with frames

    I presume that each frame would have to have it's own code to do this.
    All4YourPC for all your PC needs. Custom software.
    Websites. Web marketing. Training.
    http://members.aol.com/nickjc67


Bookmarks

Posting Permissions

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