您的位置:首页 > 其它

滑轮改变图片大小

2009-04-27 00:20 337 查看
<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='14de99aa-e1d6-4631-9713-90590831197c.png' onload="javascript:if(this.width>screen.width*0.7)this.style.width=screen.width*0.7;" onmousewheel="return bbimg(this)">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: