[imp] Thumbnails ... ?

Marc G. Fournier scrappy at hub.org
Fri Nov 5 09:21:05 PST 2004


On Fri, 5 Nov 2004, Jan Schneider wrote:

> No. Try to download the image and look if it consists of PHP error messages
> instead.

"I have no problems downloading the image by clicking on the download 
icon, and it displays the full-size image when I click on the filename at 
the top of the message.  When I click on the view thumbnail link, a blank 
page pops up.  The source html of the blank page is as follows:

<html>
<head>
<title>IM000294.JPG</title>
<style type="text/css"><!-- body { overflow:hidden; margin:0px;
padding:0px; } --></style><script language="javascript"
type="text/javascript">
function resizeWindow() {
     window.moveTo(0, 0);
     var img = new Image();
     img.onload = function() { sizeImgWin(img); };
     img.src =
"/imp/view.php?view_thumbnail=1&popup_view=1&index=39&mailbox=INBOX&actionID=vie
w_attach&id=2&mimecache=9e2ade4d4a0c27781b28bc349aeae643&img_data=1&images_view_
thumbnail=1&images_view_convert=";
}

function sizeImgWin(img) {
     var new_w = img.width;
     var new_h = img.height;
     var old_w = window.innerWidth || window.document.body.offsetWidth;
     var old_h = window.innerHeight || window.document.body.offsetHeight;

     if (!new_w) { new_w = old_w; }
     if (!new_h) { new_h = old_h; }

     new_w -= old_w;
     new_h -= old_h;

     window.resizeBy(new_w, new_h);
     var pic = document.getElementById('disp_image');
     pic.src = img.src;
     pic.style.display = 'block'; 
} 
</script></head>
<body onload="resizeWindow();"><img id="disp_image"
style="display:none" /></body></html>

----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy at hub.org           Yahoo!: yscrappy              ICQ: 7615664


More information about the imp mailing list