Does anyone have any idea how to make this so the full sized image is opened in a window sized to fit the image?
I tried the following changes below, but it's not working. It seems to work on some images but not on others.
If someone could suggest how to return the proper height and width values from the clicked image, that would be a great help towards making this work.
TIA
Code:
function fiImageWinOpen(e) {
if( window.event ){
var wwidth = window.event.srcElement.width+140;
var wheight = window.event.srcElement.height+140;
window.open(window.event.srcElement.src,'OriginalSize','menubar=no, toolbar=no, location=no, directories=no, fullscreen=no, titlebar=no, hotkeys=no, status=no, scrollbars=yes, resizable=yes, width='+wwidth+', Height='+wheight);
} else {
var wwidth = E.target.width+140;
var wheight = E.target.height+140;
window.open(e.target.src,'OriginalSize','menubar=no, toolbar=no, location=no, directories=no, fullscreen=no, titlebar=no, hotkeys=no, status=no, scrollbars=yes, resizable=yes, width='+wwidth+', Height='+wheight);
}
}