在点击之后,把连接的href修改为#
设置定时,时间到了以后再把href改回去。

解决方案 »

  1.   

    用个SESSION吧..  试试吧.      
      

  2.   

    <script language="JavaScript">
    <!--
    function doClick(obj){
    obj.outerHTML="<font color='blue' id='aLink' style='cursor:hand'>click me!</font>";
    setTimeout("chg()",5000);
    }
    function chg(){
    aLink.outerHTML='<a id="aLink" href="http://www.sohu.com" target="about:blank" onclick="doClick(this)">click me!</a>';
    }
    //-->
    </script>
    <body>
    <a id="aLink" href="http://www.sohu.com" target="about:blank" onclick="doClick(this)">click me!</a>
    </body>
      

  3.   

    function chg(){
    aLink.outerHTML='<a id="aLink" href="http://www.sohu.com" target="about:blank" onclick="doClick(this)">click me!</a>';
    }
    中的aLink.outerHTML=.........
    当一个网页中有N个链接怎办呢???
    还是加个数组来得通用些吧。