csdn下载是怎么隐藏链接的?
<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;
}
document.downLoad_dx.submit();
});
$.getJSON("http://download.csdn.net/index.php/rest/users/getcurruserinfo?jsoncallback=?",
function(data){
if(data.username!='')
{
$("#dfnscore").html("你目前积分:"+data.score);
if(data.score>=0 && data.score <=20)
{
//alert("你的积分不多了,记得要上传资源赢取积分哦!");
var btn=document.getElementById('close');
btn.className='popup';
$("#close").show();
}
if(data.score <0)
{
alert("您的积分已经是负数了,不能下载有分资源!");
}
}else
{
$("#dfnscore").html("下载请先 <a href=\"http://passport.csdn.net/UserLogin.aspx?from=http://d.download.csdn.net/down/2303821/hxhxd\" target=_blank>登录 </a> <a href=\"http://passport.csdn.net/CSDNUserRegister.aspx\" target=_blank>免费注册 </a>");
}
});
});
function closes(btn,style)
{
var btn=document.getElementById(btn);
btn.className=style;
}
// -->
</script>