滚轮控制图片大小
2008-07-15 09:46
232 查看
<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>
<a href="">
<img src="http://www.2yup.com/asp/images/asp_logo1.gif" border="0" onload="javascript:if(this.width>document.body.clientWidth-333)this.width=document.body.clientWidth-333" onmousewheel="return bbimg(this)">
</a>
<!--
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>
<a href="">
<img src="http://www.2yup.com/asp/images/asp_logo1.gif" border="0" onload="javascript:if(this.width>document.body.clientWidth-333)this.width=document.body.clientWidth-333" onmousewheel="return bbimg(this)">
</a>
相关文章推荐
- [网页]鼠标滚轮控制图片大小
- 鼠标滚轮控制图片大小
- 滚轮控制图片大小Javascript
- [转]c# winform 用鼠标滚轮控制图片大小,获取鼠标中键滚轮事件,MouseWheel事件
- 鼠标滚轮控制图片大小
- c# winform 用鼠标滚轮控制图片大小,获取鼠标中键滚轮事件,MouseWheel事件
- C#winform用鼠标滚轮控制图片大小,MouseWheel事件
- 鼠标滚轮控制图片大小
- 鼠标滚轮控制图片大小
- 鼠标滚轮控制图片大小。
- 鼠标滚轮控制图片大小,获取滚轮事件
- 学习笔记 鼠标滚轮控制图片大小
- [收藏]用CSS控制区域内图片的大小
- flash如何控制外部加载的图片大小的解决方法
- 控制上传图片的大小
- JS&RE 控制图片显示大小, 弹出窗口自适应大小,自居中, 结合UBB与正则使用 By Stabx
- javascript: 改变和控制显示的图片大小(保持比例,同时可限制高宽)
- 上传图片并且生成可以控制大小图片清晰度的方法
- 上传预览,图片展示大小的控制
- CSS控制图片自适应大小