<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml ">
<head>
<title>China Webmaster Sky-Webpage Special Effects-Comprehensive Special Effects-Forced Click Advertising Code (1)</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<!--Add the following code between <head> and </head>-->
<script language="javascript">
varnum = 2;
var mypage = 'http://www.XXXX.cn';
var pissoff = 'Please click the link above first! ';
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>
</head>
<body>
<!--Add the following code between <body> and </body>-->
<a href=" http://www.XXX.cn " target="_blank" onClick="gotoit(1)"> Advertising link</a><br>
<a href="javascript:gotoit(num)">Please click the link above first and then click here to download</a>
</body>
</html>
Program code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml ">
<head>
<title>China Webmaster Sky-Webpage Special Effects-Comprehensive Special Effects-Forced Click Advertising Code (2)</title>
<meta http-equiv="content-type" content="text/html;charset=gb2312">
<!--Add the following code between <head> and </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>
</head>
<body>
<!--Add the following code between <body> and </body>-->
<div id="Layer1" style="position:absolute;top:75px;left:10px;width:306px;height:63px;z-index:1;visibility:hidden;"><a href=" http:/ /www.XXX.cn ">Download</a></div>
<div id="Layer2" style="position:absolute;top:10px;left:10px;width:147px;height:82px;z-index:2;visibility: visible;"><a href=" http:/ /www.XXX.cn " target="_blank"><img src=" </body>
</html>