可以的不用js也行,用CSS控制.........

解决方案 »

  1.   

    <style TYPE="text/css">
    <!--
    A:link{text-decoration:none}
    A:visited{text-decoration:none}
    A:hover {color: #ff00ff;text-decoration:underline}
     -->
    </style>
      

  2.   

    <head>
    <style>a{TEXT-DECORATION:none}</style>
    </head>
      

  3.   

    <BODY>
    <A HREF="#" onclick="var t = this.style.textDecoration;if(t=='underline'){this.style.textDecoration='none';this.style.color='red';} else {this.style.textDecoration='underline';this.style.color='green';}" style="text-decoration:underline;">wwww.163.com</A>
    </BODY>
      

  4.   

    那就特定的链接加CSS效果啊。
      

  5.   

    <script language=javascript>
    var enable=true;
    </script>
    ...
    <a href="..." style="text-decoration:none" onclick="return enable">...</a>
    <input type="button" onclick="enable=!enable">
      

  6.   

    试试removeAttribute("href")吧,和<a>没有写href一样效果还是用onclick="return false"好
      

  7.   

    谢谢fosjos,就是我要的答案.
    同时也谢谢各位