JS代码(随便放哪里):
script language="JavaScript"
!--
var flag=false;
function DrawImage(ImgD){
var image=new Image();
image.src=ImgD.src;
if(image.width0 && image.height0){
flag=true;
if(image.width/image.height= 180/110){
if(image.width180){
ImgD.width=180;
ImgD.height=(image.height*110)/image.width;
}else{
ImgD.width=image.width;
ImgD.height=image.height;
}
/*ImgD.alt="bigpic" */
}
else{
if(image.height110){
ImgD.height=110; ...[ 查看全文 ]