<html>
  <head>
    <title>鼠标事件</title>
    <script language="javascript">
        function erase()
      {
        window.status="";
      }
      function moveover(txt)
      {
        window.status=txt;
        setTimeout("erase()",1000);
      }
    </script>
  </head>
  <body>
    <a href="pic.jpg" onMouseOver=moveover("瞬间即逝")>
    漂亮的图片
    </a>
  </body>
</html>

解决方案 »

  1.   

    <html> 
      <head> 
        <title>鼠标事件 </title> 
        <script language="javascript"> 
            function erase() 
          { 
            window.status=""; 
          } 
          function moveover(txt) 
          { 
            window.status=txt; 
            setTimeout("erase()",1000); 
          } 
        </script> 
      </head> 
      <body> 
        <a href="pic.jpg" onMouseOver=moveover("瞬间即逝")> 
        漂亮的图片 
        </a> 
      </body> 
    </html> 
      

  2.   

    <html>
      <head>
        <title>鼠标事件</title>
        <script language="javascript">
          function erase()
          {
            window.status="";
          }
          function moveover(txt)
          {
            window.status=txt;
            setTimeout('window.status="' + txt + '"',1000);
            setTimeout('erase()',2000);
          }
        </script>
      </head>
      <body>
        <a href="pic.jpg" onMouseOver='moveover("瞬间即逝")'>
        漂亮的图片
        </a>
      </body>
    </html>
      

  3.   


    <html>
      <head>
        <title>鼠标事件</title>
        <script language="javascript">
            function erase()
          {
            window.status="";
          }
          function moveover(txt)      {
            window.status=txt;
            setTimeout(erase,1000);
            
          }
        </script>
      </head>
      <body>
        <a href="pic.jpg" onMouseOver='moveover("瞬间即逝");return true'>
        漂亮的图片
        </a>
      </body>
    </html>