图片适应屏幕并鼠标滚动缩放的代码

<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="pic/124.jpg"  border=0  onmousewheel="return bbimg(this)" onload="javascript:if(this.width>screen.width-100)this.style.width=screen.width-100;">

上一篇: ASP数组
下一篇: 解决局域网中XP互访
文章来自: 网络
引用通告: 查看所有引用 | 我要引用此文章
Tags:
最新日志:
评论: 0 | 引用: 0 | 查看次数: 5707
发表评论
登录后再发表评论!