Webcounter
- Anthony-john5
-
Anthony-john5
- Member since: Oct. 20, 2001
- Offline.
-
- Forum Stats
- Member
- Level 22
- Blank Slate
I've only just started using HTML and was wondering how to insert a hit-counter (preferably one that records unique visitors)
- Uncle-Boris
-
Uncle-Boris
- Member since: Jan. 7, 2001
- Offline.
-
- Forum Stats
- Member
- Level 09
- Blank Slate
At 3/21/02 12:41 PM, Anthony_john5 wrote: I've only just started using HTML and was wondering how to insert a hit-counter (preferably one that records unique visitors)
Not possible just with HTML. HTML is static. It'll only display what you tell it to. DHTML is dynamic and is better, but it's not server-side and can cause a lot of problems. PHP or PERL are best.
- Anthony-john5
-
Anthony-john5
- Member since: Oct. 20, 2001
- Offline.
-
- Forum Stats
- Member
- Level 22
- Blank Slate
Not possible just with HTML.
I wasn't thinking about doing it with HTML, I was thinking more along the lines of a site that provides you with a counter. Like on Homestead.
- Alcolol
-
Alcolol
- Member since: Oct. 12, 2001
- Offline.
-
- Forum Stats
- Member
- Level 05
- Blank Slate
Try to make your own Javascrtipted Counter, you can edit it how you want as you have to supply the graphics for it... There are some sites that have tutorials on Javascripted hit counters
- Pecos
-
Pecos
- Member since: Dec. 29, 1999
- Offline.
-
- Forum Stats
- Member
- Level 03
- Blank Slate
At 3/21/02 12:41 PM, Anthony_john5 wrote: I've only just started using HTML and was wondering how to insert a hit-counter (preferably one that records unique visitors)
go to yahoo.com and search for free web counters. then just insert the html code they give you on the page where you want the hits counted.
- Afroman-0002
-
Afroman-0002
- Member since: Feb. 1, 2002
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
At 3/21/02 12:41 PM, Anthony_john5 wrote: I've only just started using HTML and was wondering how to insert a hit-counter (preferably one that records unique visitors)
Here this is Javascript because you can't create a counter in HTML:
<script>
function counter(){
var decrease_increase=-50000
var counterdate=new Date()
var currenthits=counterdate.getTime().toString()
currenthits=parseInt(currenthits.substring(2,currenthits.length-4))+decreas e_increase
document.write("You are visitor # "+currenthits+" to my site!")
}
counter()
</script>

