It took a few days getting bigger effort to find the Internet connection access database javascript method, a consolidated summary, and finally to write a code that can be effectively implemented.
But this code can be running on the local, once placed on the free personal space can not perform a major reason why the operating authority is not enough, the only free space to support most of the static pages are
Made a very strict limitations, so it is with the mdb way, or ways to read and write plain text files no way to pass, and the js error reported by the page.Abroad, some free space, so a direct extension of the prohibition of mdb file upload.
Although he did not want to purely static pages of free counter space for your own or message boards, but this procedure may still be useful for some friends to write out for you the look.
Document form:
Access database called MyData.Mdb, which built a table called the count, the table consists of two fields: ID and COUNT, there is a table of data: (''count'','' 100'').
Text file called count.txt, which writes a random number.
Static page called Cnt.htm.
More than 3 files are in the same directory.
As a result of Access database, and it uses non-standard SQL syntax, so pay attention to the table and field names on the need to add square brackets: []
Here is the code in the page: one method is getCountFromDB Access database operations, getCountFromTxt method is to operate txt plain text, the two methods are adopted in the local implementation.
Postscript: While only supports static pages of free space is not available, but I think some support for the free space should be able to Asp, and of course I have not specifically tried, but their own imagination.And in this way to read and write the database, only suitable for the counter and message confidentiality of such work does not need, after all, is to use javascript code written in full, no one can see, then you can get the file path to the dbdownloaded for analysis, we had to use it to save some do not want to let others know.Like I said a colleague, connect to the database using javascript to operate, simply hijacking, Oh, that's true, since the free space can not be used to make their own counter, and that can only be used to play with this codethemselves look good feeling.