script language=Javascriptvar proMaxHeight = 150;var proMaxWidth = 110; function proDownImage(ImgD){ var image=new Image(); image.src=ImgD.src; if(image.width0 && image.height0){ var rate = (proMaxWidth/image.width proMaxHeight/image.height)?proMaxWidth/image.width:proMaxHeight/image.height; if(rate = 1){ ImgD.width = image.width*rate; ImgD.height =image.height*rate; } else { ImgD.width = image.width; ImgD.height =image.height; } }}//--
百度的javascrip...[ 查看全文 ]