用样式是没有办法实现的。这样可以吗
<script>
function setstatus()
{
window.status='hi';
}
</script>
<body onload=setInterval(setstatus,1)>
<a href="a1.htm">a1</a>
<a href="a12.htm">a12</a>
<a href="a13.htm">a13</a>

解决方案 »

  1.   

    用样式是没有办法实现的。这样可以吗
    <script>
    function setstatus()
    {
    window.status="大家好";
    }
    </script>
    <body onload=setInterval(setstatus,1)>
    <a href="a1.htm">a1</a>
    <a href="a12.htm">a12</a>
    <a href="a13.htm">a13</a>
      

  2.   

    呵呵,比较搞笑 <body onmouseover='if(event.srcElement.tagName=="A"){window.status="你好啊";return true;}' onmouseout='if(event.srcElement.tagName=="A"){window.status="你怎么不理我了";}'><a href="bbb.htm" alt="nihao">看bbb.htm</a><br> 
    <a href="ccc.htm">看ccc.htm</a>
      

  3.   

    <style>
    a{qswh:expression(window.status="请选择")}
    a:hover{qswh:expression(window.status="大家好")}
    </style>
    <a href=/>aa</a>
    <a href=/>aa</a>详见:http://www.blueidea.com/bbs/archivecontent.asp?id=434909
      

  4.   

    几种方法都比较有趣。
    原来样式表的功能这样强大呢,不过为什么运行时总只有最后一个<a>会响应hover呢?qswh提供的经典现在好像联不上啊