强制点击广告易做图
强制点击广告易做图(1):如果你的广告点击率太低,这个方法可以强制访客先点击广告
把下面代码copy入你html文件的<head>和</head>中即可:
<script language="JavaScript">
var num = 2;
var mypage = http://www.youwen.net;
var pissoff = 你必须先点击上面的链接 ;
allow = Array();
allow[num] = 2;
function gotoit(link){
if (link != num){
allow[link] = 2;
} else {
for (i=1;i<=num;i++){
if (allow[i] != 2){
i = num + 1;
lemmeIn = 0;
} else {
lemmeIn = 1;
}
}
if (lemmeIn == 1){
window.location = mypage;
} else {
alert(pissoff);
}
}
}
//--->
</script>
把下面代码copy入你html文件的<body>和</body>中即可:
<a href="http://www.youwen.net" onClick="gotoit(1)" target="_blank"><u>先帮忙点击这里</u></a><BR>
<a href="javascript :gotoit(num)"><u>进入</u></a><BR>
<script language="Javascript">
<!--
document.write(<a href="http://www1.youwen.net" target="_top"></a>);
//-->
</script>
======================================================================
强制点击广告易做图(2):点了图象才能看到链接.可用于强制点击广告
第一步:把如下代码加入<head>区域中
<SCRIPT language="JavaScript">
<!--
function MM_showHideLayers() { //v2.0
var i, visStr, args, theObj;
args = MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
visStr = args[i+2];
if (navigator.appName == Netscape && document.layers != null) {
theObj = eval(args[i]);
if (theObj) theObj.visibility = visStr;
} else if (document.all != null) { //IE
if (visStr == show) visStr = visible; //convert vals
if (visStr == hide) visStr = hidden;
theObj = eval(args[i+1]);
if (theObj) theObj.style.visibility = visStr;
} }
}
function MM_preloadImages() { //v2.0
if (document.images) {
var imgFiles = MM_preloadImages.arguments;
if (document.preloadArray==null) document.preloadArray = new Array();
var i = document.preloadArray.length;
with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
preloadArray[i] = new Image;
preloadArray[i++].src = imgFiles[j];
} }
}
//-->
</SCRIPT>
第二步:在<body>区中加入如下代码
<div id="Layer1" style="position:absolute; left:240px; top:175px; width:306px; height:63px; z-index:1; visibility: hidden"><a href="http://www1.youwen.net"><font color=green size="5" face="隶书">带你去一个意想不到的地方!</font></a></font></div>
<div id="Layer2" style="position:absolute; left:280px; top:237px; width:147px; height:82px; z-index:2; visibility: visible">
<p align="center"><a href="http://www.youwen.net" target="_blank">
<img SRC="/kf/200511/20051110220553302.jpg" border="0" onMouseDown="MM_showHideLayers(document.layers[/Layer1/],document.all[/Layer1/],show)"></a></font><br>
</p>
</div>
第三步:把<body>区中内容改为:
<body bgcolor="#fef4d9" onLoad="MM_preloadImages()">
======================================================================
强制点击广告易做图(3):两个文字链接要先后点击,否则就跳出警告框
第一步:把如下代码加入<head>区域中
<script language="JavaScript">
var num = 2;
var mypage = http://www1.youwen.net;
var pissoff = 请先点击上面链接 ;
allow = Array();
allow[num] = 2;
function gotoit(link){
if (link != num){
allow[link] = 2;
} else {
for (i=1;i<=num;i++){
if (allow[i] != 2){
i = num + 1;
lemmeIn = 0;
} else {
lemmeIn = 1;
}
}
if (lemmeIn == 1){
window.location = mypage;
} else {
alert(pissoff);
}
}
}
//--->
</script>
第二步:把如下代码加入<body>区域中
<a href="http://www.youwen.net" onClick="gotoit(1)" target="_blank"><u>先帮忙点击这里</u></a><BR>
<a href="javascript :gotoit(num)"><u>下载本站所有页面</u></a>
补充:综合编程 , 安全编程 ,