Be a Supporter!

Webcounter

  • 754 Views
  • 5 Replies
New Topic Respond to this Topic
Anthony-john5
Anthony-john5
  • Member since: Oct. 20, 2001
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Webcounter 2002-03-21 12:41:03 Reply

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
Response to Webcounter 2002-03-21 13:57:04 Reply

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
Response to Webcounter 2002-03-21 14:41:32 Reply

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
Response to Webcounter 2002-03-30 05:19:56 Reply

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
Response to Webcounter 2002-04-02 15:19:57 Reply

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
Response to Webcounter 2002-04-02 21:40:34 Reply

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>