由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - 土问题: how to check which key is pressed
相关主题
求助HTML一个input提交多个values请问ASP高手
Any Idea ?Ok leRe: 请问ASP高手
post problem[转载] Per/CGI 表单:两类元素如何绑定?
请教关于multipart/form-datahtml 如何把大段文字和网页对象分开,然后文字以引用的方式嵌回对象区?
unlink the current menu itemperl cgi.pm checkbox reset question (转载)
jquery的奇怪问题,alert不出现perl cgi param( ) question
多个$(document).ready的问题reset button and checkbox question in the webpage
ASP 和DATABASE一问how to avoid security holes for perl CGI code using checkbo (转载)
相关话题的讨论汇总
话题: checkbox话题: pressed话题: onclick话题: return
进入BuildingWeb版参与讨论
1 (共1页)
s*****p
发帖数: 5342
1
我有一列checkbox,like




在multiselect function里我想查是否Shift键 is pressed down. 这个function怎么
写呀?
多谢!
r****m
发帖数: 83
2
function isShiftKeyPressed(event){
if (event.shiftKey==1){
//alert("shift key pressed!");
return true;
}else{
//alert("shift key NOT pressed!");
return false;
}
}
s*****p
发帖数: 5342
3
thanks! it works for IE. what about Firefox?

【在 r****m 的大作中提到】
: function isShiftKeyPressed(event){
: if (event.shiftKey==1){
: //alert("shift key pressed!");
: return true;
: }else{
: //alert("shift key NOT pressed!");
: return false;
: }
: }

r****m
发帖数: 83
4
The best way to get the answer is to google it. A question like this has
been answered ONE THOUSAND times on the internet. Just go and get it.
Have fun!
h*******c
发帖数: 248
5
在function开始的地方加一句
if(!event) event=window.event;

【在 s*****p 的大作中提到】
: thanks! it works for IE. what about Firefox?
1 (共1页)
进入BuildingWeb版参与讨论
相关主题
how to avoid security holes for perl CGI code using checkbo (转载)unlink the current menu item
Help on javascript of Netscape on Macjquery的奇怪问题,alert不出现
另一个小问题...多个$(document).ready的问题
如何把ASP的变量传到javascript/HTML的参数ASP 和DATABASE一问
求助HTML一个input提交多个values请问ASP高手
Any Idea ?Ok leRe: 请问ASP高手
post problem[转载] Per/CGI 表单:两类元素如何绑定?
请教关于multipart/form-datahtml 如何把大段文字和网页对象分开,然后文字以引用的方式嵌回对象区?
相关话题的讨论汇总
话题: checkbox话题: pressed话题: onclick话题: return