WPE|52wpe|我爱WPE

 找回密码
 注册会员
搜索
  • 2024查看
  • 0回复

主题

好友

1936

积分

金牌会员

发表于 2010-1-18 23:06:17 |显示全部楼层
《新概念黑客基地》技术文章
你可以建立一个ads.js,下面就是这个JS文件的代码.把这个文件调用要你需要弹出广告的网页即可
function openpopup(){
document.writeln( <SCRIPT language=&#106avascript>);
document.writeln(window.open('http://siyizhu.126.com'));
document.writeln(</script\>);
}

function get_cookie(Name) {
var search = Name + =
var return&#118alue = ;
if (documents&#46cookie.length > 0) {
offset = documents&#46cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = documents&#46cookie.indexOf(;, offset);
if (end == -1)
end = documents&#46cookie.length;
return&#118alue=unescape(documents&#46cookie.substring(offset, end))
}
}
return return&#118alue;
}

function helpor_net(){
if (get_cookie('popped')==''){
openpopup()
documents&#46cookie=popped=yes
}
}
helpor_net()
红色部分换成你要弹出广告的URL

快速发帖

您需要登录后才可以回帖 登录 | 注册会员

手机版|Archiver|WPE|52wpe|我爱WPE ( 闽ICP备15009081号 )

GMT+8, 2024-5-12 09:54 , Processed in 0.056467 second(s), 16 queries .

返回顶部