...

View Full Version : margins in pop-up window?



ric7202
10-28-2003, 08:19 PM
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?

adios
10-28-2003, 08:40 PM
http://www.codingforums.com/showthread.php?threadid=9836&perpage=15&pagenumber=1 :cool:

ric7202
10-28-2003, 08:52 PM
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)?.

beetle
10-28-2003, 11:58 PM
Try the version the Skyzyx finessed

http://www.skyzyx.com/scripts/imagepop.php

ric7202
10-29-2003, 10:09 PM
Thanks a lot...that worked nice. Standing ovations for the helpful people here!!! :D :p :o :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum