Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member waynarky's Avatar
    Join Date
    Jan 2004
    Location
    Johannesburg, south africa
    Posts
    323
    Member #
    4485
    hi all

    I want my images to open in new windows when you click on the thumb. I know that to do this u set the target to blank, but how do I specify what size the window that opens will be? I want the image to just fit without any white space around it.

    Thanks

  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    To specify a window's size you can use JavaScript.

    http://www.yourhtmlsource.com/javasc...upwindows.html

  4. #3
    Senior Member
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    435
    Member #
    8983
    if you know the image size try the following script:
    Code:
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=WIDTH_HERE,height=HEIGHT_HERE);");
    call it by the following:
    HTML Code:
    <a href="javascript:popUp('IMG_URL')">open image</a>
    Thee Pyro Wolf

  5. #4
    Senior Member Rince's Avatar
    Join Date
    Nov 2004
    Posts
    183
    Member #
    8318
    Be aware that almost everyone these days has a popup blocker which will ruin the operation of such a script.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:45 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com