第一步:把下列代码放到<head>.........</head>中
<script>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>......</body>中:
<a onfocus=this.blur() href=" http://www.webjx.com/img2/dw0501101-13.gif"; target=_blank title=新窗口打开><img SRC=" http://www.webjx.com/img2/dw0501101-13.gif"; border=0 onmousewheel="return bbimg(this)" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;"></a>
本人测试时使用的是IE6.0,其他的浏览器不知道支持不?大家可以自己去测试一下
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18