如何控制鼠标放在连接上时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=click
如果把鼠标放在一个以 <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=click
<!--
// 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="javascript:void(0);" onclick="window.location.href='xxx.html';" >连接文字 </a>
修改成这样后,状态栏里就显示javascript:abc.asp
可以写一个函数把 "javascript:" 过滤掉吗
<script>
function doMouseMove() {
var tr = document.body.createTextRange();
tr.moveToPoint(event.clientX, event.clientY);
tr.expand("word");
window.status = tr.text;
}
document.onmousemove = doMouseMove;
</script>
<a href="javascript:void(0);" onClick="window.location.href= 'xxx.htm';" >连接文字 </a > 这句还是转到111.htm
<a href="111.htm" onClick="window.location.href= 'aaa.htm';" >连接文字 </a >如果是在下框中转向又怎么修改
可是在框架中如何设置,如下框 ,右框架
<FRAME name=down src="">