Hi,
I have a simple script that opens an image in a new window which is sized to
the image. The script is as follows: <a title="xxx"
onclick="window .open('http://www.[sitename].com/photos/xxx.jpg','heigh t=xxx,
width=xxx');ret urn false" href="#">link text</a>
This script works very well for my needs, however, in IE6, the resulting
opened window has unnecessary padding on the top and left sides of the
image, which pushes the image down and to the right inside the window. The
window is not resizable, and some of the image is therefore cropped. I don't
notice this with Safari or Camino. Is this a bug in IE? Is there a way to
compensate for this extra padding in IE? Is there a more elegant way of
executing this script to avoid the problem altogether?
I would appreciate any advice.
Cheers,
Beck
I have a simple script that opens an image in a new window which is sized to
the image. The script is as follows: <a title="xxx"
onclick="window .open('http://www.[sitename].com/photos/xxx.jpg','heigh t=xxx,
width=xxx');ret urn false" href="#">link text</a>
This script works very well for my needs, however, in IE6, the resulting
opened window has unnecessary padding on the top and left sides of the
image, which pushes the image down and to the right inside the window. The
window is not resizable, and some of the image is therefore cropped. I don't
notice this with Safari or Camino. Is this a bug in IE? Is there a way to
compensate for this extra padding in IE? Is there a more elegant way of
executing this script to avoid the problem altogether?
I would appreciate any advice.
Cheers,
Beck
Comment