You should be more familiar with JavaScript. Here we use it to solve the problem of advertising. Design idea is this: the original same screen display multiple fixed advertising practice to Single-screen only show an ad, but this advertisement is rotation, that is, each time you browse, the ads appear different. In this way, the speed is fast, and the number of clicks does not drop (because most ads are counted only once for multiple clicks of the same IP). Hey, this method is not very good ah? (Next: But this seems to show that the number will be reduced AH!) ) This ... But there is no way, but as far as I know, most of them are not enough clicks!
Below is the source code. If you are a law-abiding citizen, you can delete the last Right key pop-up window code section, because ... This is after all a suspicion of cheating. In fact, changes in the section code can be used for many purposes, such as the right to click Random Navigation, greetings and so on. I am here to make a start, you prawns to do their own change it!
<!--Begin
var how_many_ads = 3;
var now = new Date ()
var sec = Now.getseconds ()
var ad = sec% How_many_ads;
Ad +=1;
Produces a random number between 1~how_many_ads.
if (ad==1) {
txt= "Free advertising from click2net!";
Url= "http://redirect.click2net.com/?A044837,88";
alt= "Click here to visit our sponsor";
Banner= "http://image.click2net.com/?A044837,88";
Width= "468";
height= "60";
}
if (ad==2) {
txt= "Cornucopia Advertising network!";
Url= "http://cashbox.com.cn/Ads/click.html?clientID=1004321";
alt= "Please click on our sponsor";
Banner= "http://cashbox.com.cn/Ads/ads.html?clientID=1004321";
Width= "468";
height= "60";
}
if (ad==3) {
txt= "China Advertising Network";
Url= "http://www.chinaads.net/ads/clicks.asp?100188,1";
alt= "China Advertising Network";
Banner= "http://www.chinaads.net/ads/images.asp?100188,1";
Width= "468";
height= "60";
}
Select different ads for different random numbers
document.write (");
document.write (' document.write (' document.write (width + ' height= ' + height + ');
document.write (' alt=\ ' + ALT + ' \ border=0> ');
document.write (' + txt + ');
document.write (");
Output ads
The following is the right button pop-up advertising section, the best ... Delete
function Click () {
if (event.button==2) {
window.open (URL, ' popwindows ', "toolbar=no,menubar=no,width=200,height=200")
}
}
Document.onmousedown=click
end→
You see? I'm saving it as a ads.js file and inserting it in the Web page, so it's convenient to change ads later.
In support of ASP's home page space is also more and more, if you have such a homepage, the use of ASP's advertising rotation component is simpler. Here I will explain for you.
First, you must create a setup file that displays the way. This is a text file that records how graphics are displayed and other settings information. The format is as follows:
[REDIRECT URL]
[WIDTH number]
[HEIGHT number]
[BORDER number]
*
adURL
adHomePageURL
Text
impressions