用鼠标滚动轴改变图片大小的特效
把鼠标放在图片上面,并上下滚动滚动轴,看看效果怎么样?
<SCRIPT LANGUAGE="Javascript">
function aa(e, o)
{
var zoom = parseInt(o.style.zoom, 10) || 100;
zoom += event.wheelDelta / 12;
if (zoom > 0) o.style.zoom = zoom + '%';
return false;
}
</SCRIPT>
<IMG SRC="showimg.asp?BoardID=113&filename=2006-5/20065181834116364.jpg" onmousewheel="return aa(event,this)" onload="javascript:if(this.width>650)this.style.width=650;">
[此贴子已经被作者于2006-5-18 18:40:25编辑过]