打印本文 打印本文 关闭窗口 关闭窗口
标放到广告上会自动弹出广告页(付费广告点击的作弊方法)
作者:武汉SEO闵涛  文章来源:本站原创  点击数1059  更新时间:2010/9/25 17:26:01  文章录入:mintao  责任编辑:mintao
标放到广告上会自动弹出广告页(付费广告点击的作弊方法)这个作弊方法原理是鼠标放到广告上会自动弹出广告页,第二次就不会自动弹出了
这个是一开始落伍的一位朋友提供的,但是后来发现第二次进这个网站的时候鼠标放过去还是会弹出广告,所以特别多加入了COOKIES 方法判断
代码为
以下是代码片段:
<script language="JavaScript" type="text/JavaScript">
var autoclick_ok=false;
var cishu = 1
function mClk()
{
if(!autoclick_ok && cishu==1 &&readCookie("sx488")!="T")
{
var source=event.srcElement;source.click();
cishu+=1;
writeCookie("sx488","T",3)
}
}
function writeCookie(name, value, hours)//写入cookie的函数,按名称,值,和小时
{
var expire = "";
if(hours != null)
{
expire = new Date((new Date()).getTime() + hours * 3600000);
expire = "; expires=" + expire.toGMTString();
}
document.cookie = name + "=" + escape(value) + expire;
}
function readCookie(name)//读取cookie函数
{
var cookievalue = "";
var search = name + "=";
if(document.cookie.length > 0)
{
offset = document.cookie.indexOf(search);
if (offset != -1)
{
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
cookievalue = unescape(document.cookie.substring(offset, end))
}
}
return cookievalue;
}
</script>

然后在广告代码如

以下是代码片段:
<script>
ed_ads_UserId=***;
</script>
<script src="http://www.mintao.net/ads.js<script>

改为:

以下是代码片段:
<font onmouseover=mClk()>
<script>
ed_ads_UserId=***;
</script>
<script src="http://http://www.mintao.net/ads.js<script>
</font>

广告代码请自行更换为自己的GGAD、BDAD或其它的广告代码。
打印本文 打印本文 关闭窗口 关闭窗口