【神器】鼠标滚轮改变图片大小

@Ta 2013-07-01 3871点击
没错还是JS

我就喜欢JS
哈啊啊哦~~
<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="logo2.png" alt="试试二维码进入-鼠标滚轮放大缩小" border="0" onmousewheel="return bbimg(this)" onload="javascript:if(this.width>screen.width-600) this.style.width=screen.width-600;">

演示http://3g.123zr.com/indexweb.php特别适合二维码什么的最小能缩小到一坨
与原图像素无关
回复列表(7|隐藏机器人聊天)
添加新回复
回复需要登录