如何在网页中获取鼠标滚轮的值 onwheele事件 里判断力一下焦点是不是在MP上? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 onmousewheel 鼠标中键滚动事件<img id=pic src="http://community.csdn.net/images/CSDN_logo.GIF" border=0 onmousewheel="return zoomimg(this)" alt="鼠标滚轮放大/缩小图片"><script>var zoomp = 92;function zoomimg(img){ var zoom = parseInt(img.style.zoom,10) || 100; zoom += event.wheelDelta / 12; if (zoom>10) img.style.zoom = zoom + "%"; return false;}</script> <SCRIPT LANGUAGE="JavaScript"><!--function show(){event.wheelDelta>0?document.body.innerText-=-1:document.body.innerText-=1;}//--></SCRIPT><body onmousewheel="show()">1 -function(){} 这是神马写法? [求助]Ext.onReady第三个参数的用途 网页中是否存在 ".document.forms[0].item[n].value"这样的表达式, javascirt改变窗口坐标 简单问题,搞不清楚,望指点 安全性问题:如何自己的ActiveX 控件标记为安全? 菜单怎么做?(用javascript) 怎样用Javascript实现IE中F11的功能? 请教编辑器冲突问题 如何用jQuery在页面实现把一个table中的tb拖拽到另外一个table中,并且把数据添加到新的table中 求教关于客户端验证问题 ie vs netscape
<img id=pic src="http://community.csdn.net/images/CSDN_logo.GIF"
border=0 onmousewheel="return zoomimg(this)" alt="鼠标滚轮放大/缩小图片">
<script>
var zoomp = 92;
function zoomimg(img)
{
var zoom = parseInt(img.style.zoom,10) || 100;
zoom += event.wheelDelta / 12;
if (zoom>10) img.style.zoom = zoom + "%";
return false;
}
</script>
<!--
function show(){
event.wheelDelta>0?document.body.innerText-=-1:document.body.innerText-=1;
}//-->
</SCRIPT>
<body onmousewheel="show()">
1