Changing the size of a popup window?

Discussion in 'Javascript' started by Kevin Audleman, Apr 24, 2007.

  1. I'm building a site that has images of flowers, and when someone
    clicks on a thumbnail it brings up a larger version in a popup window.
    I am using window.open to open the new window with all the toolbars
    turned off and the window resized to the correct size for the current
    picture. The problem is the pictures are of different sizes, and once
    the popup window is open it won't resize. So if the first image I open
    is 470x240 and the second is 670x365, the second image will be
    cropped. You can see this here

    http://www.floweringaround.com/new/boquets.html (only the first three
    images are currently working)

    Is there a way to resize the window every time onclick is pressed?

    Thanks,
    Kevin
     
    Kevin Audleman, Apr 24, 2007
    #1
    1. Advertising

  2. Kevin Audleman

    -Lost Guest

    Kevin Audleman wrote:
    > I'm building a site that has images of flowers, and when someone
    > clicks on a thumbnail it brings up a larger version in a popup window.
    > I am using window.open to open the new window with all the toolbars
    > turned off and the window resized to the correct size for the current
    > picture. The problem is the pictures are of different sizes, and once
    > the popup window is open it won't resize. So if the first image I open
    > is 470x240 and the second is 670x365, the second image will be
    > cropped. You can see this here
    >
    > http://www.floweringaround.com/new/boquets.html (only the first three
    > images are currently working)
    >
    > Is there a way to resize the window every time onclick is pressed?
    >
    > Thanks,
    > Kevin


    http://www.howtocreate.co.uk/perfectPopups.html

    --
    -Lost
    Remove the extra words to reply by e-mail. Don't e-mail me. I am
    kidding. No I am not.
     
    -Lost, Apr 24, 2007
    #2
    1. Advertising

  3. On Apr 23, 11:32 pm, -Lost <> wrote:
    > Kevin Audleman wrote:
    > > I'm building a site that has images of flowers, and when someone
    > > clicks on a thumbnail it brings up a larger version in a popup window.
    > > I am using window.open to open the new window with all the toolbars
    > > turned off and the window resized to the correct size for the current
    > > picture. The problem is the pictures are of different sizes, and once
    > > the popup window is open it won't resize. So if the first image I open
    > > is 470x240 and the second is 670x365, the second image will be
    > > cropped. You can see this here

    >
    > >http://www.floweringaround.com/new/boquets.html(only the first three
    > > images are currently working)

    >
    > > Is there a way to resize the window every time onclick is pressed?

    >
    > > Thanks,
    > > Kevin

    >
    > http://www.howtocreate.co.uk/perfectPopups.html
    >
    > --
    > -Lost
    > Remove the extra words to reply by e-mail. Don't e-mail me. I am
    > kidding. No I am not.


    ty!!
     
    Kevin Audleman, Apr 30, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kenny
    Replies:
    1
    Views:
    683
    Travis Murray
    Dec 13, 2004
  2. =?Utf-8?B?Sm9obiBXYWxrZXI=?=

    Popup Window Popup Timing

    =?Utf-8?B?Sm9obiBXYWxrZXI=?=, Nov 4, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    883
    =?Utf-8?B?Sm9obiBXYWxrZXI=?=
    Nov 4, 2005
  3. Jens Peter Hansen
    Replies:
    7
    Views:
    598
    Randy Webb
    Jun 19, 2004
  4. Raffi
    Replies:
    4
    Views:
    263
    Dr John Stockton
    Aug 12, 2004
  5. Daniel Fugmann

    Adapt size of popup to its content's size?

    Daniel Fugmann, Aug 17, 2004, in forum: Javascript
    Replies:
    4
    Views:
    144
    kaeli
    Aug 18, 2004
Loading...

Share This Page