小弟我想要一个图片特效:图片随鼠标滚珠的上下滚动而变化大小.
怎么实现,大家帮帮忙!
看样子是没人理了,
还好,我已经找到了.
<script language = "JavaScript"> function bbimg(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="images/lhd/xianjin2006/wmdw.jpg" width="350" height="234" align="textTop" border="0" onmousewheel="return bbimg(this)" onload="javascript:if(this.width>screen.width-600)this.style.width=screen.width-600;">