图片缩进, 获取缩进后的长和宽。
onMouseWheelvar count = 10;
function Picture() {
count = Counting(count);
Resize(count);
aaa();
return false;
}
function Counting(count){
if (event.wheelDelta >= 120)
count++;
else if (event.wheelDelta <= -120)
count--;
return count;
}
function Resize(count){
oImage.style.zoom = count + '0%';
oCounter.innerText = count + '0%';
}
function aaa(){
var pic = new Image();
pic.οnlοad=function(){
alert(this.width*(count/10));
};
pic.src = "aaa.gif";
}
Size =
100%