控制鼠标,让其点不中某按钮,让按钮避开鼠标的焦点。 <input type="button" onclick="return false"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 即跑开,是按钮跑开吧。既然是这样,楼主你可以换一种方式考虑这个问题啊,把按钮disabled不就行了吗?^_^ <script>function aa(){var x=event.x;var y=event.y;document.all.button1.style.left =x+20;document.all.button1.style.top =y+20;}</script><body onmousemove=aa()><input type=button id=button1 value="你就是点不中我,^_^"style="position:absolute;left:30;top:30;width:150;height:20;"> <input type=button id=button1 value="你就是点不中我,^_^" onmousemove="this.style.left=event.clientX*Math.random()+50;this.style.top=event.clientY*Math.random()+50" style="position:absolute;"> bencalie(Bencalie) 这样的化还是有机会可以点到的。 MOUSE点不到还能用TAB銉吧?好象没什么意思 <input type="button" onfocus="this.blur()" onclick="return false;"> 移动button不好吧?当按钮获得焦点后,按enter键还是有click事件发生 那怎样让按钮点击一次以后就变成灰色,即DISABLED,在JAVASCRIPT中应该怎样用语句实现呢,我试了DOCUMENT.FORM1.BUTTON1.DISABLED=TRUE,好像这样写没用。应该怎样写呢? <button onclick="this.disabled=true"></button> 如何解决jquery在tabs里用dialog时出现重复多余dialog的问题 EXTJS 中 两表单元素动态数据怎么实现? switch case 是否是IE8的bug? mvc dropdownlist 取当前值 跪求Textarea中取光标位置插入图片代码!我给分!! 看看这个javascript为什么不能实现页面跳转 c:forEach 获取选择数据问题 求助:使用innnerHTML自动加上<TBODY>和</TBODY> 请大神写一个点击防刷新的导航 简单的问题 怎么样获得一同名text表单域的值?
楼主你可以换一种方式考虑这个问题啊,把按钮disabled不就行了吗?^_^
function aa(){
var x=event.x;var y=event.y;
document.all.button1.style.left =x+20;
document.all.button1.style.top =y+20;
}
</script>
<body onmousemove=aa()>
<input type=button id=button1 value="你就是点不中我,^_^"style="position:absolute;left:30;top:30;width:150;height:20;">