在下拉列表中禁用鼠标滚轮滚动? [英] disabling mouse wheel scroll in drop-down list?
问题描述
用户
点击下拉列表时,是否可以禁用鼠标滚轮滚动?
谢谢
ef ***** @ epitome.com.sg skrev:
我可以在用户时禁用鼠标滚轮滚动
点击下拉列表?
简答:没有
Henrik Stidsen写道:
ef*****@epitome.com.sg skrev:
>当用户点击下拉列表时,我是否可以在鼠标中禁用滚轮滚动?
简答:no
这是可能的。我想OP意味着< SELECT SIZE = 1 withdrop-down
list。 FF& NS对这些元素上的车轮事件没有反应,所以那里没有问题。至于MSIE(6 +),
< select size =" 1" onMouseWheel =" return false;">
应该这样做。
-
Bart
Bart Van der Donck在2006年10月18日上午5:34发表以下内容:
Henrik Stidsen写道:
> ef **** *@epitome.com.sg skrev:
>>当用户
点击下拉列表?
简答:没有
这是可能的。我想OP意味着< SELECT SIZE = 1 withdrop-down
list。 FF& NS对这些元素上的车轮事件没有反应,所以那里没有问题。至于MSIE(6 +),
< select size =" 1" onMouseWheel =" return false;">
在一个体面的浏览器中测试:)
应该这样做。
尽管如此,这与世界上任何事情一样肛门。如果一个用户希望使用鼠标滚轮滚动
,那么它似乎非常反用户友好
来禁用它。
但是,它现在被添加到我的书签中以重新启用*我的* IE工作
方式*我*希望它能够工作。
最佳解决方案:以合理的方式设计您的应用程序,以便我的鼠标
轮子不会搞砸了。
-
Randy
机会有利于准备好的心灵
comp.lang.javascript常见问题 - http://jibbering.com/faq &新闻组每周
Javascript最佳实践 - http://www.JavascriptToolbox .com / bestpractices /
Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?
Thanks
ef*****@epitome.com.sg skrev:Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?Short answer: no
Henrik Stidsen wrote:
ef*****@epitome.com.sg skrev:>Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?
Short answer: noIt''s possible. I suppose the OP means <SELECT SIZE=1 with "drop-down
list". FF&&NS do not react on wheel events on such elements, so no
problem there. As for MSIE (6+),
<select size="1" onMouseWheel="return false;">
should do.
--
Bart
Bart Van der Donck said the following on 10/18/2006 5:34 AM:Henrik Stidsen wrote:
>ef*****@epitome.com.sg skrev:>>Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?Short answer: no
It''s possible. I suppose the OP means <SELECT SIZE=1 with "drop-down
list". FF&&NS do not react on wheel events on such elements, so no
problem there. As for MSIE (6+),
<select size="1" onMouseWheel="return false;">Test that in a decent browser :)
should do.
That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.
But, it is now added to my bookmarklet to reenable *my* IE to work the
way *I* want it to work.
Best solution: Design your app in a sensible manner so that my mouse
wheel doesn''t screw it up.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
这篇关于在下拉列表中禁用鼠标滚轮滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!