你意思中的javascript是运行在客户端的,怎么统计别人点击之后呢?

解决方案 »

  1.   

    哦!我的意思就是最好不要使用ACCESS。如果用一个文本文件可以的话就最好了。
      

  2.   

    可以用文本文件来存储数据,要用动态网页才行。
    show.htm<a href="AddCount.asp">软件</a>下载次数:<Script Language="JavaScript" src="ShowCount.asp"></Script>AddCount.asp<% 
    CountFile=Server.MapPath("counter.txt") 
    Set FileObject=Server.CreateObject("Scripting.FileSystemObject") 
    Set Out=FileObject.OpenTextFile(CountFile,1,FALSE,FALSE) 
    counter=Out.ReadLine 
    Out.Close 
    SET FileObject=Server.CreateObject("Scripting.FileSystemObject") 
    Set Out=FileObject.CreateTextFile(CountFile,TRUE,FALSE) 
    counter= counter + 1 
    Out.WriteLine(counter) 
    Out.Close
    Response.Redirect "software.rar" '要提供下载的文件。
    %>ShowCount.asp<% 
    CountFile=Server.MapPath("counter.txt") 
    Set FileObject=Server.CreateObject("Scripting.FileSystemObject") 
    Set Out=FileObject.OpenTextFile(CountFile,1,FALSE,FALSE) 
    counter=Out.ReadLine 
    Out.Close 
    %>
    document.write("<font color=red>")
    document.write("<%=counter%>")
    document.write("</font>")
      

  3.   

    忘了一个文本文件。counter.txt
    0