Visit also do not know calculate is not original, anyway is no reference to anything, do-it-yourself. First you need 2 ASP files, 1 text files, and a SWF file. -------------------info.asp----------------------------
Here is the display IP, version, landing time <!--#include file= "num.asp"-->
<%
Set Userip = Request.ServerVariables ("Http_x_forwarded_for")
If Userip = "" Then Userip = Request.ServerVariables ("REMOTE_ADDR")
Response.Write ("&t0= Your IP address is:" &userip)
Set Ie=request.servervariables ("Http_user_agent")
Response.Write ("&t1= your browser version and operating system is:" &ie)
Response.Write ("&t2=" The time you landed is: "&now ())
%>---------------------------num.asp-----------------------------
This shows the number of landings and the number of times---------------------------logged to the text
<%
Dim visitors
Whichfile=server.mappath ("Time.txt")
Set Fs=createobject ("Scripting.FileSystemObject")
Set Thisfile=fs.opentextfile (Whichfile)
Visitors= (Thisfile.readline)
Thisfile.close visitors=visitors+1
Response.Write ("&num=" &visitors)
Set Out=fs.createtextfile (Whichfile)
Out.writeline (visitors)
Out.close
Set fs=nothing
%>---------------------------Time.txt--------------------
Here is the log log number of 2921 (but set their own initial value)
---------------------------info.swf-----------------
This is shown through flash to insert the above data into the first stitch:
Init ();
function init () {
Settxt ();
Run ();
System.usecodepage = true;
Loadvariablesnum ("num.asp", "", "POST");
}
function Settxt () {
For (i=0 i<4; i++) {
This.createtextfield ("TXT" +i, I, ten, 100+30*i, 90, 0);
this["txt" +i].autosize = "Left";
this["txt" +i].border = true;
}
}
function Run () {
LV = new Loadvars ();
Lv.onload = function (OK) {
if (OK) {
For (i=0 i<3; i++) {
_root["txt" +i].text = this["T" +i];
}
Delete this.onload;
}
};
Lv.load ("info.asp", "", "POST");
Onenterframe = function () {
Txt3.text = num;// In order to be able to refresh the time to read the landing times, so here is used onenterframe.// Otherwise the numbers can't be refreshed, I tried for half a day.
};
}
Complete. The original code is as follows:
Click to download the file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.