Pete-O:
Try updating your javascript generated by the clseimg.php script to look something like this:
Code: Select allvar isNav4, isIE4, isFirefox;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
isFirefox = (navigator.userAgent.indexOf("Firefox") != -1) ? 1 : 0 ;
isNav4 = (navigator.appName == "Netscape") ? 1 : 0;
isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}
function fitWindowSize() {
if (isFirefox) {
window.innerWidth = document.images[0].width;
window.innerHeight = document.images[0].height + 50;
} else if (isNav4) {
window.innerWidth = document.layers[0].document.images[0].width;
window.innerHeight = document.layers[0].document.images[0].height;
} else if (isIE4) {
window.resizeTo(500, 500);
width = 500 - (document.body.clientWidth - document.images[0].width);
height = 500 - (document.body.clientHeight - document.images[0].height) + 50;
window.resizeTo(width, height);
}
}
However, this doesn't work if the option "tools->options->web features->enable javascript->advanced->allow scripts to->move or resize existing windows" is not checked.
-- pryankster