怎么获取多张图片的宽和高,并且显示啊
OI_OI 2012-08-25 11:41:10 我百度到的一条代码
function ReSizePic(ThisPic){
var RePicWidth = 50;
var TrueWidth = ThisPic.width;
var TrueHeight = ThisPic.height;
var Multiple = TrueWidth / RePicWidth;
ThisPic.height = TrueHeight / Multiple;
alert(ThisPic.height);
}
这段代码怎么获取多张图片的,现在只能获取一张图片的,麻烦哪位大神帮忙修改下