28,409
社区成员




<IMG src="../admin/up-moni/ <%Response.Write(rs("图1"))%>" border=0 onload='drawImage(this,300,300)'>
function drawImage(ImgD,widthStr,heightStr){
var image=new Image();
image.src=ImgD.src;
if(image.width>0 && image.height>0){
if(image.width/image.height>= 1){
if(image.width>widthStr){
ImgD.width=widthStr;
ImgD.height=(image.height*widthStr)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
}else{
if(image.height>heightStr){
ImgD.height=heightStr;
ImgD.width=(image.width*heightStr)/image.height;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
}
}
}
<div style="width:300px;height:300px;overflow:hidden;">
<IMG src='../admin/up-moni/ <%Response.Write(rs("图1"))%>' border=0 onload='drawImage(this,300,300)'>
</div>