本帖最后由 okok911 于 2011-08-21 11:08:52 编辑

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script type="text/javascript">
    window.onload = function() {
    document.getElementById('down_load_false').onclick = function() {
    return false;
    }
    document.getElementById('btn').onclick = function() {
    document.getElementById('down_load_false').onclick = function() {
    return true;
    }
    }
    }
    </script>
    </head><body>
    <div id="down_load_false" >
    <A title="表格式记忆.rar" href="http://www.baidu.com/attachme/23324906.rar">表格式记忆.rar</A>
    <input type="button" id="btn" value="接触锁定" />
    </div>
    </body>
    </html>
      

  2.   


    onclick  return false; 就好了
      

  3.   

    <A id="mylink" title=表格式记忆.rar href="http://www.baidu.com/attachme/23324906.rar" onclick="return false;">表格式记忆.rar</A>function download(){ }
        mylink.onclick="return true";
    }