如何实现不响应鼠标右键 如何实现不响应鼠标右键,当按住文件链接鼠标右键不放时,也不响应,状太栏也显示任何信息 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language=javascript> function show() { var objs=document.getElementsByTagName("a") for(var i=0;i<objs.length;i++) { objs[i].onmouseover=function(){window.status='';return true} } }</script><body onload="show()" oncontextmenu="return false"> <a href="http://www.csdn.net">csdn</a> 那你就在版主给的代码中,补上事件就行了。这样无论左键右键都不显示了。<script>function show() { var objs=document.getElementsByTagName("a") for(var i=0;i <objs.length;i++) { objs[i].onmouseover=objs[i].oncontextmenu=objs[i].onclick=function(){window.status= ' ';return true} } } </script > <body onload="show()" oncontextmenu="return false" > <a href="http://www.csdn.net" >csdn </a > 可以用这个修改一下但是本人没有修改成功<script LANGUAGE="JavaScript"><!--// Scrolling message settingsvar MessageText = "大家好"var DisplayLength = 260var pos = 1 - DisplayLength;function ScrollInStatusBar(){var scroll = "";pos++;if (pos == MessageText.length) pos = 1 - DisplayLength;if (pos<0) {for (var i=1; i<=Math.abs(pos); i++)scroll = scroll + "";scroll = scroll + MessageText.substring(0, DisplayLength - i + 1);}elsescroll = scroll + MessageText.substring(pos, pos + DisplayLength);window.status = scroll;//Scrolling speedsetTimeout("ScrollInStatusBar()",0);}ScrollInStatusBar()//--></script> 浏览器可以直接禁用JavaScript,没这必要,普通应用人员都知道咋整。 <body oncontextmenu="return false" >但是浏览器会阻止 如何控制鼠标放在连接上时IE的状态条? 如果把鼠标放在一个以<a href="....">连接文字</a>为连接的对象上时,IE的状态条上会显示出HREF中的地址,如何做才能不让它显示,我把所有的参数都加上了,可是把鼠标按住不放时,还是显示原来的信息地址了<a href="aaa.asp" ONMOUSEMOVE="window.status='设定信息1';return true" select = true; OnMouseDown="window.status='设定信息2';return true" select = true; onMouseOver="window.status='设定信息3';return true" onMouseOut="window.status='';return true"onMouseUp="window.status='设定信息4';return true"onClick="window.status='设定信息5';return true"onDblClick="window.status='设定信息6';return true">点击这里开始</a>要做到按住鼠标(右键或左键时)不放时,状态条显示自己设定的信息,松开后,就还原用这种方法可以激活一个状态函数,可是状态条里就总是显示 函数 里的固定信息了, 不能还原,如何释放函数?或松开鼠标键后,释放函数function click() {if (event.button==2 || event.button==1) {ScrollInStatusBar();}}document.onmousedown=clickScrollInStatusBar 状态函数 在6楼我列出来了 iframe 跳转问题 点击按钮运行打开新窗口运行文本框中JS的问题 求javascript treeview 动态加载javaScript内存泄露问题 关于jQuery不同文件提示错误问题 大家看看哪儿有错啊 最好的javascript编辑工具 网站备案的一些事情。我有个网站要备案 使用<Iframe>...</IFrame>可实现web编辑器的功能.可是如何将用户本次编辑的内容保存,方便下次打开继续编辑呢? 为什么拿不到变量里面的值? 新手一个问题请大家帮忙看看,关于onblur的问题函数老是调用不进去 有谁熟悉这段代码?
function show()
{
var objs=document.getElementsByTagName("a")
for(var i=0;i<objs.length;i++)
{
objs[i].onmouseover=function(){window.status='';return true}
}
}
</script>
<body onload="show()" oncontextmenu="return false">
<a href="http://www.csdn.net">csdn</a>
function show() {
var objs=document.getElementsByTagName("a")
for(var i=0;i <objs.length;i++) {
objs[i].onmouseover=objs[i].oncontextmenu=objs[i].onclick=function(){window.status= ' ';return true}
}
}
</script >
<body onload="show()" oncontextmenu="return false" >
<a href="http://www.csdn.net" >csdn </a >
<!--
// Scrolling message settings
var MessageText = "大家好"
var DisplayLength = 260
var pos = 1 - DisplayLength;
function ScrollInStatusBar(){
var scroll = "";
pos++;
if (pos == MessageText.length) pos = 1 - DisplayLength;
if (pos<0) {
for (var i=1; i<=Math.abs(pos); i++)
scroll = scroll + "";
scroll = scroll + MessageText.substring(0, DisplayLength - i + 1);
}
else
scroll = scroll + MessageText.substring(pos, pos + DisplayLength);
window.status = scroll;
//Scrolling speed
setTimeout("ScrollInStatusBar()",0);
}
ScrollInStatusBar()
//-->
</script>
但是浏览器会阻止
如果把鼠标放在一个以<a href="....">连接文字</a>为连接的对象上时,IE的状态条上会显示出HREF中的地址,如何做才能不让它显示,
我把所有的参数都加上了,可是把鼠标按住不放时,还是显示原来的信息地址了<a href="aaa.asp" ONMOUSEMOVE="window.status='设定信息1';return true" select = true;
OnMouseDown="window.status='设定信息2';return true" select = true;
onMouseOver="window.status='设定信息3';return true"
onMouseOut="window.status='';return true"
onMouseUp="window.status='设定信息4';return true"
onClick="window.status='设定信息5';return true"
onDblClick="window.status='设定信息6';return true">点击这里开始</a>要做到按住鼠标(右键或左键时)不放时,状态条显示自己设定的信息,松开后,就还原用这种方法可以激活一个状态函数,可是状态条里就总是显示 函数 里的固定信息了, 不能还原,如何释放函数?或松开鼠标键后,释放函数
function click() {if (event.button==2 || event.button==1) {ScrollInStatusBar();}}document.onmousedown=clickScrollInStatusBar 状态函数 在6楼我列出来了