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?
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)?.