C
Captain Nemo
Hi
I've written some javascript code for a pop-up window which presents a
series of images. These images are of various dimensions, so that when each
picture is loaded, the window is resized accordingly.
All this works absolutely fine on my system (IE6 running on Win98) but I'm
told there are problems on XP. Basically, what happens is that once the
window height has been reduced, it then fails to increase for the next
image.
Here is a very simplified version of the code that resizes the window. The
parameters iWidth and iHeight are the actual dimensions of the current
image.
var WindowWidth = iWidth + 200;
if (WindowWidth < 750)
WindowWidth = 750;
window.resizeTo(WindowWidth, iHeight + 210);
Any suggestions?
Thanks.
I've written some javascript code for a pop-up window which presents a
series of images. These images are of various dimensions, so that when each
picture is loaded, the window is resized accordingly.
All this works absolutely fine on my system (IE6 running on Win98) but I'm
told there are problems on XP. Basically, what happens is that once the
window height has been reduced, it then fails to increase for the next
image.
Here is a very simplified version of the code that resizes the window. The
parameters iWidth and iHeight are the actual dimensions of the current
image.
var WindowWidth = iWidth + 200;
if (WindowWidth < 750)
WindowWidth = 750;
window.resizeTo(WindowWidth, iHeight + 210);
Any suggestions?
Thanks.