日期:2014-05-16  浏览次数:20515 次

csdn下载是怎么隐藏链接的?
JScript code
 
<div class="xiazai">

                    <h5>

   

<img width="172" height="26" class="downnew" id="btndownload_dx" alt="" src="images/dianxin.gif"/>

<br/>   

<img width="172" height="26" class="downnew" id="btndownload_wt" alt="" src="images/wangtong.gif"/>


                    <!-- <img id="btndownload" alt="" src="/images/pic_2.gif" /> -->

                   

                    </h5>

                   

                   

<iframe name="iframe_data" style="display:none;"> </iframe>

<form name="downLoad_wt" id="downLoad" method="post" action="http://d.download.csdn.net/index.php/new/download/dodownload/2303821/hxhxd/93ea63ec8bc2ad0643e1ba58d38347ad" target="iframe_data">

<input name="ds" value="wt" type="hidden">

</form>

<form name="downLoad_dx" id="downLoad" method="post" action="http://d.download.csdn.net/index.php/new/download/dodownload/2303821/hxhxd/93ea63ec8bc2ad0643e1ba58d38347ad" target="iframe_data">

<input name="ds" value="dx" type="hidden">

</form>                                   

<p>

<a href="http://vip.csdn.net/download.aspx?ID=2303821" onclick='LogClickCount(this,171);' target="_blank">《程序员》VIP会员免积分下载 </a>

<br/>

<dfn id="dfnscore"> </dfn>

<br/>

<a href="http://download.csdn.net/source/2303821#acomment" target="_blank">下载后评价,轻松获取积分 </a>

</p>

                </div>
下面是需要的js代码:
<script type="text/javascript">

<!--

$(function() {


$("#btndownload_wt").css("cursor","pointer");

$("#btndownload_dx").css("cursor","pointer");


  $("#btndownload_wt").click(function(){

    if(2 >0)

    {

        if(!confirm('下载该资料将扣除2分,进行评分后会归还您的分数。\n\n重复下载不会重复扣分。是否继续?'))

            return false;

       

    }

    document.downLoad_wt.submit();     

  });

 

    $("#btndownload_dx").click(function(){

    if(2 >0)

    {

        if(!confirm('下载该资料将扣除2分,进行评分后会归还您的分数。\n\n重复下载不会重复扣分。是否继续?'))

            return false;

&nbs