提示:您可以先修改部分代码再运行
<!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>
<title>中国站长天空-网页特效-综合特效-点击广告才能显示下载地址</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<!--把下面代码加到<head>与</head>之间-->
<script language="javascript" type="text/javascript">
function setCookie(name,value,days){
var exp=new Date();
exp.setTime(exp.getTime() + days*24*60*60*1000);//24小时只显示一次广告
var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
document.cookie=name+"="+escape(value)+";expires="+exp.toGMTString();
}
function getCookie(name){
var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
if(arr!=null){
return unescape(arr[2]);
return null;
}
}
function delCookie(name){
var exp=new Date();
exp.setTime(exp.getTime()-1);
var cval=getCookie(name);
if(cval!=null){
document.cookie=name+"="+cval+";expires="+exp.toGMTString();
}
}
function will() {
if (event.srcElement.tagName=='A' || event.srcElement.tagName=='IMG') {
window.focus();
oUrl.style.display = "";
yAds.style.display = "none";
setCookie("force","yes",1);
}
}
</script>
</head>
<body>
<!--把下面代码加到<body>与</body>之间-->
<div id="yAds">
<a onclick="will();" href="http://www.111cn.net" target="_blank">广告内容</a>
</div>
<div id="oUrl" style="display:none">
<a href="#">下载地址</a>
</div>
<script language="javascript" type="text/javascript">
if (getCookie("force")!="yes") {
oUrl.style.display = "none";
yAds.style.display = "";
}
else{
oUrl.style.display = "";
yAds.style.display = "none";
}
</script>
</body>
</html>
提示:您可以先修改部分代码再运行