﻿
//启用代码域名个数
var domainnums=1;

theDomain = new Array();
theDomain[0] = "x.rps.cn";
theDomain[1] = "x1.rps.cn";
theDomain[2] = "x2.rps.cn";
theDomain[3] = "x3.rps.cn";
theDomain[4] = "x4.rps.cn";
theDomain[5] = "x5.rps.cn";
theDomain[6] = "x6.rps.cn";
theDomain[7] = "x7.rps.cn";
theDomain[8] = "x8.rps.cn";
theDomain[9] = "x9.rps.cn";

if (domainnums>1)
{
var rands = Math.round(Math.random()*domainnums);
while (rands >(domainnums-1)) {
   rands = Math.round(Math.random()*domainnums);
}
}else{rands=0;}

if (rands==""){rands=0}
var codedomain=theDomain[rands];


//注意：各位站长不要更改代码，否则一经发现视为作弊处理！
var cnxad_subid;
if ((cnxad_subid==null)||(cnxad_subid==''))
{
cnxad_subid="0";
}
if ((cnxad_userid!='0')&&(cnxad_userid!='1000')&&(cnxad_userid!='10004')&&(cnxad_userid!='10012'))
{
var cnxad_str_url;  
cnxad_str_url = document.referrer;
if ((cnxad_str_url.indexOf("rps.cn")<0)&&(cnxad_str_url.indexOf("rps.cn")<0))
{ 
if(self!=top)
{alert('郑重提示站长：\r\r  请不要将点击广告代码投放在IFRAME内\r\r  长时间不修改视为作弊行为！\r\r  此消息来自：www.rps.cn\r\r'+cnxad_str_url);top.location=self.location; }
}
}

 

document.write("<iframe id='cnxad_code' name='cnxad_code' src='http://"+codedomain+"/AdCode.aspx?codeCrt="+cnxad_f+"&webuserid="+cnxad_userid+"&subid="+cnxad_subid+"&exid="+cnxad_exid+"&logo="+cnxad_logo+"&encode="+cnxad_encode+"&keyword=&furl="+window.location.href+"' width='"+cnxad_width+"' height='"+cnxad_height+"' marginwidth=0 marginheight=0  scrolling=no border=0 frameborder=0></iframe>");

