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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question margins in pop-up window?

    I use a common script to display images in a pop-up window. The problem is that if I direct the image directly to the window (i.e. NOT via an html-page) the window has white spaces to the left and top of the image. These margins appears even if the windowsize is predetermined. If I put the big image in a html-document first, I can kill the margins within the doc, but then I have to use 1 doc for every image. I don't want that as I have many pics. The Q now is: Is there any way to remove the margins of the new pop-up window (containing only the image, not a html-doc) with a script? I have seen a solution where one uses a single html-doc to display different pics but the problem there was that one could not make the window change size according to the current picture. Any solution to that?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts

  • #3
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thx, but still problems...

    I tried that script, but had some problems: 1. The pop-up window didn't resize to the img-size. 2. The image only loaded one time. If I closed the pop-up and clicked the link again, the window popped up as supposed to, but the image never showed again. Could the problems relate to my old browser (IE 4)?.

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try the version the Skyzyx finessed

    http://www.skyzyx.com/scripts/imagepop.php
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #5
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Works Fine

    Thanks a lot...that worked nice. Standing ovations for the helpful people here!!!


  •  

    Posting Permissions

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