Web counters!

liunx

Guest
I want a hidden counter to count how many visitors visit that page, and then I want this figure to be displayed on another page.<br />
<br />
Does anyone know how to do this please?<br />
<br />
Thanks in advance,<br />
Jonathanbull33<!--content-->You need some kind of server script to do this for you. You can either have a removely hosted script do the counter for you, but often you are required to show the counter/advertisement. Or your host may offer you the option already ? (try: <!-- m --><a class="postlink" href="http://www.bravenet.com/">http://www.bravenet.com/</a><!-- m -->)<br />
<br />
If you have a webhost who offers counters (e.g. the webpage is 'counted' when the server loads the page) then I have often done this:<br />
<br />
<layer visibility="hide"><br />
<div style="display: none;"><br />
<!-- counter text here --><br />
</div><br />
</layer><br />
<br />
This means you can do 'view source' to view the count, but it wont be visible on the page itself.<br />
<br />
You may want to give above a try.<br />
<br />
Note: you can not do counters with html or javascript alone because it requires a script which can write to the server (either your own host server or a removely placed host) to record the number of visits.<!--content-->The DIV tag in this case.<br />
<br />
<div style="position: absolute; left: 100px; top: 200px;"> <br />
<img src=http://www.htmlforums.com/archive/index.php/"JOUW_PLAATJE" alt="Show Counter" width="140" height="40"></div> <br />
<br />
<div style="position: absolute; left: -120px; top: 200px;"> <br />
<img src=http://www.htmlforums.com/archive/index.php/"JOUW_PLAATJE" alt="Hide Counter" width="140" height="40"></div> <br />
<br />
left: -120px; has to be changed in -160 and then it is out of the pageview.<br />
<br />
Then create a page called mycounter.html and put the counter code in the normal way.<br />
Do not link to this page it is for your eyes only ;)<br />
<br />
:rocker: :rocker:<!--content-->Thanks for your answers,<br />
I am not sure if this is quite what I want, I want the counter to be displayed on my front page saying something like - <br />
1208 users have visited this page<br />
<br />
If that's what u've told me, do i just copy and paste that code onto my page, or do I need to set it up to get the stats from the counter - sorry, but im a beginner!<br />
<br />
Thanks again,<br />
Jonathan<!--content-->
 
Back
Top