<a href="http://www.google.com" name=a1 id=a1 hit=0 onclick="this.hit++;return this.hit==1">链接1</a>
<a href="http://www.google.com" name=a2 id=a2>链接2</a>
<a href="http://www.google.com" name=a3 id=a3>链接3</a>

解决方案 »

  1.   

    <a href="http://www.google.com" name=a1 id=a1 onclick="window.open(this.href);this.outerHTML=this.innerHTML;return false">链接1</a>
    <a href="http://www.google.com" name=a2 id=a2 onclick="window.open(this.href);this.outerHTML=this.innerHTML;return false">链接2</a>
    <a href="http://www.google.com" name=a3 id=a3 onclick="this.href=''" target="_blank">链接3</a>
      

  2.   

    <body>
    <a href="http://www.google.com" name=a1 id=a1 target="_blank">链接1</a>
    <a href="http://www.google.com" name=a2 id=a2 target="_blank">链接2</a>
    <a href="http://www.google.com" name=a3 id=a3 target="_blank">链接3</a><SCRIPT LANGUAGE="JavaScript">
    document.onclick = function(e)
    {
      e = e || window.event;
      e = e.target || e.srcElement;
      if(e.tagName=="A") e.disabled = true;
    }
    </SCRIPT>
      

  3.   

    感谢高手们慷慨解答,只是meizz(梅花雪) 的方法怎么好像都没有能禁止链接,另两位的都是让链接点过一次之后就不能再点。
    我可能没表达清楚,我希望是禁止连续点击某个链接,而不是只能点击一次,这样有可能实现吗?
      

  4.   

    按照你的描述应该是这样子:
    <a href="http://www.google.com" name=a1 id=a1 onclick="if(disabled)return false;disabled=true;a2.disabled=a3.disabled=false;" target="_blank">链接1</a>
    <a href="http://www.google.com" name=a2 id=a2 onclick="if(disabled)return false;disabled=true;a1.disabled=a3.disabled=false" target="_blank">链接2</a>
    <a href="http://www.google.com" name=a3 id=a3 onclick="if(disabled)return false;disabled=true;a1.disabled=a2.disabled=false" target="_blank">链接3</a>不过你要的可能仅仅是<a href="http://www.google.com" name=a1 id=a1 target="a1">链接1</a>
    <a href="http://www.google.com" name=a2 id=a2 target="a2">链接2</a>
    <a href="http://www.google.com" name=a3 id=a3 target="a3">链接3</a>
      

  5.   

    也可以像梅花雨(叫惯了,现在叫梅花雪了)那样把脚本独立出来:<a href="http://www.google.com" name=a1 id=a1 target="_blank">链接1</a>
    <a href="http://www.google.com" name=a2 id=a2 target="_blank">链接2</a>
    <a href="http://www.google.com" name=a3 id=a3 target="_blank">链接3</a>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    for (var i=0;i<document.anchors.length;i++)
    document.anchors[i].attachEvent("onclick",
    function(){
    if (window.lastClick==event.srcElement) return false;
    window.lastClick=event.srcElement;
    }
    )
    //-->
    </SCRIPT>
      

  6.   

    对了,就是emu(祝福后山)给的这个样子,谢谢了!