Recommended: Talk about the very practical code of asp I have collected some practical asp code, which saves everyone's time to search during web page creation. Filter characters: FunctionGetSafeStr(str) GetSafeStr=Replace(Replace(Replace(Replace(Replace(Replace(Str,','),,"),),),,lt;),gt;) EndFunction Gregorian to Lunar calendar % FunctionNongli(
If you want to count the number of clicks on each domain name of a friendly link, because we cannot operate the web page of the friendly link and cannot write code on the link page, then what should we do?
The method is to create a JavaScript functiona(bb){}, and the writing method of the hyperlink that wants to count the number of clicks is <ahref=http://www.chinaz.comonclick=aa(23);>text</a> .
The result after onclicking the {} part should make it produce a special effect similar to a previous web page, that is, click a certain text on the current page, and the picture or text on a certain part of the current page will appear. The difference is that here we need to make It appears with code, not pictures or text.
Then, it can be implemented in many ways.
For example, you can make it call an asp or php file in .js, such as document.write('<scriptsrc=http://....php></script>'), and write it in this asp or php file. program to enter the counter.
Alternatively, using <iframe>, the target page of the iframe is also this asp or php program.
In this way, the number of clicks for each domain name of the friendly link is achieved.
Share: How to improve the speed of access to Asp programs Using the asp program for web page design is mostly because you need to access the database and then display the data to the page. If there is a lot of data, the access speed of the page will slow down. In order to solve this problem, you can use the following techniques to improve the access speed of the page. . One of the tips: It is time-consuming to use the Request collection to access an ASP collection to extract a value