摘要: function resizeImage(image, max) { if (Math.max(image.width, image.height) > max) { if (image.width > image.height) image.width = max; else image.height = max; } return true;} <img onload="var max=64;if(Math.max(this.width,this.height)>max){if(this.width>this.height)this.width=ma 阅读全文
posted @ 2011-08-18 14:46 ahui 阅读(804) 评论(0) 推荐(0) 编辑