鼠标缩放图片

来源:互联网 发布:关于网络暴力调查报告 编辑:程序博客网 时间:2024/04/26 18:45
<html>< language="java">img_zoom(e, o)  //图片鼠标滚轮缩放{var zoom = parseInt(o.style.zoom, 10) || 100;zoom += event.wheelDelta / 12;if (zoom > 0) o.style.zoom = zoom + '%';  return false;}</><body bgcolor="#fef4d9"> 你可以修改src="图片地址"中的图片地址和this.width=300中的300数值,其他地方不要动 <DIV ID=plane3><IMG wheel="return img_zoom(event,this)" ="java:if(this.width>screen.width-333) this.width=screen.width-333;if(this.width>600) this.width=300" src="图片地址" border="0"></DIV></body></html>