google的广告页面代码的js

来源:互联网 发布:老虎机预测软件 编辑:程序博客网 时间:2024/05/15 23:45
版权所有,yacsha(wangcheng711@gmail.com)
http://blog.csdn.net/yacsha/ 
2007-04-12

看完google的js代码后,对google广告系统作弊还是非常容易的!!
function onFocus_onMouseOver_ss(w_status,id)
{
continue;
 window.status = w_status;
 a = document.getElementById(id);
 if (a)
 {
  bi = a.href.indexOf("&nm=");
  if (bi < 1)
  {
   return true;
  }
  c = a.href.substring(0, bi+4); 前端数据
  d = a.href.substring(bi+4, a.href.length); 末尾数据
  ei = d.indexOf("&");
  if (ei < 0)
  {
   f = d;
   r = '';
  }
  else
  {
   f = d.substring(0, ei);
   r = d.substring(ei, d.length);
  }
  var g = parseInt(f); 
  g++;
  a.href= c+g+r;
 }
 return true;
}
function onMouseDown_st(a_id)
{
 return true;
}
function onMouseOut_cs()
{
 window.status='';
}
function jcc(a)
{
 pha=document.getElementById(a);
 nc=pha.href.indexOf('&jca=');
 if(nc>=1)
  return;
 sv=String.fromCharCode(56,57,50,52,56,52,53,54,57);
 sv=sv.slice(2,6);
 jca=(-337)+parseInt(sv);
 if (a=='aw0')
 {
  jca+=(5700);
 }
 else if (a=='aw1')
 {
  jca+=(6557);
 }
 else if (a=='aw2')
 {
  jca+=(5874);
 }
 else if (a=='aw3')
 {
  jca+=(1458);
 }
 else
 {
  jca=0;
 }
 phb=pha.href+'&jca='+jca;
 pha.href=phb;
}
function onClick_div_ha(a_id)

 pha=document.getElementById(a);
 nhi=pha.href.indexOf("&nh=");
 if(nhi < 1)
 {
  phb=pha.href+"&nh=1";
 }
 pha.href=phb;
 jcc(a);
}
function ca(a)

 pha=document.getElementById(a);
 nci=pha.href.indexOf("&nc=");
 if(nci < 1)
 {
  phb=pha.href+"&nc=1";
 }
 pha.href=phb;
 jcc(a);
 top.location.href=document.getElementById(a).href;
}
function onClick_ga(o_this,e_event)
{
 if (document.getElementById)
 {
  a=o.id.substring(1);
  p = "";
  r = "";
  g = e.target;
  if (g)
  {
   t = g.id;
   f = g.parentNode;
   if (f)
   {
    p = f.id;
    h = f.parentNode;
    if (h)r = h.id;
   }
  }
  else
  {
   h = e.srcElement;
   f = h.parentNode;
   if (f)
    p = f.id;
   t = h.id;
  }
  if (t==a || p==a || r==a)
   return true;
  pha=document.getElementById(a);
  nbi=pha.href.indexOf("&nb=");
  if(nbi < 1)
  {
   phb=pha.href+"&nb=1";
  }
  pha.href=phb;
  jcc(a);
  top.location.href=document.getElementById(a).href;
 
原创粉丝点击