<a onclick=window.open('add.asp') style="cursor:hand">new</a>

解决方案 »

  1.   

    <a href="#" onclick=window.open('add.asp')>new</a>
      

  2.   

    或<a href="javascript:onclick=window.open('add.asp')"> new</a>
      

  3.   

    在css中设置超链接的 style="cursor:hand"
      

  4.   

    <a href="#" onclick="window.open('add.asp')">new</a>
      

  5.   

    <a href=javascript:void(null) onclick=window.open('add.asp') style="cursor:hand">new</a>
      

  6.   

    这个问题很麻烦,,我的解决办法是使用HTC,绑定到任何标记都有链接效果
    <PUBLIC:COMPONENT>
    <PUBLIC:ATTACH onevent="domouseover()" event="onmouseover"/>
    <PUBLIC:ATTACH onevent="domouseout()"  event="onmouseout"/>
    </PUBLIC:COMPONENT>
    <script language="JScript">
    element.runtimeStyle.color="black";
    element.runtimeStyle.textDecoration="none";
    function domouseover()
    {
       element.runtimeStyle.color="red";
       element.runtimeStyle.textDecoration="underline";
    }
    function domouseout()
    {
      element.runtimeStyle.color="black";
      element.runtimeStyle.textDecoration="none";  
    }</script>
    HTML文件 
    <script>
    .richLink{
    text-decoration : none;
    color:black;
    cursor:hand;
    behavior:url(htc/link1.htc);
    font-family : 宋体;
    font-size:9pt;
    }
    </script>
    <!--使用span代替A -->
    <span onclick="self.open('showinfo.asp?PartID=101&InfoID=10','_blank','width=650,height=500,scrollbars=1')"  class="richTR">链接文字</span>
      

  7.   

    错了,应该是 richLink,名字可以自己定
    <span onclick="self.open('showinfo.asp?PartID=101&InfoID=10','_blank','width=650,height=500,scrollbars=1')"  class="richLink">链接文字</span>
      

  8.   

    <a href="javascript:" onclick=window.open('add.asp')>new</a>