鼠标滚轮控制图片大小

    技术2025-09-18  33

    <html><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>

    <body bgcolor="#fef4d9" onLoad="init()"> <DIV ID=plane3><img border="0" src="1.jpg" onmousewheel="return bbimg(this)"></DIV></body></html>

    最新回复(0)