<a href = "test.htm" onmouseover = "status = 'you will see this in the status' ; return true ;" >hello </a>
鼠标移动到链接区域时状态栏显示“you will see this in the status”这个字符串,我现在碰到的问题是:
将js代码提到一个函数中,如下所示:
function showStatus() {
   status = "you will see this in the status" ;
   return true;
}链接改成这样:
    <a href = "test.htm" onmouseover = "showStatus() ;" >hello </a>
此时状态栏不显示字符串,显示链接,也就是说函数没有返回true
而且在showStatus();调用后加上return true;又好使了。敬请高手解答