Reply
Javascript-Counter Question
Old 02-08-2004, 07:43 PM Javascript-Counter Question
KRYPTOR's Avatar
Skilled Talker

Posts: 62
Name: Ray
Location: Illinois
Trades: 0
I was forced to change my counter
html/javascript because whiz-mail
decided to CHARGE for their FREE
scripts they had available for websites
before. ALL of the accounts that had
whiz-mail in their FREE scripts, will now
have the word, FORBIDDEN substituting
their counter!!!
SO I am trying the following script out
below to SEE if it works. It should count
up. PLEASE let me know if the below
script will work!

<html>
<head>
</head>
<body>
<CENTER><font color=#134c39><B>Number of visitors:
<script language="javascript"<!--
mycount = mycount + 1;
document.write(mycount);
// --></script></B></font></CENTER>
</body>
</html>

***SHOULD I CHANGE ANYTHING TO THE SIMPLE COUNTER SCRIPT ABOVE?***

Thanks!
The KRYPTOR
__________________
"What is SEEN is TEMPORAL, What is UNSEEN is ETERNAL".

Exotic And Rare Plants!
KRYPTOR is offline
Reply With Quote
View Public Profile Visit KRYPTOR's homepage!
 
 
When You Register, These Ads Go Away!
Old 02-08-2004, 09:26 PM
praveen's Avatar
Life is a Dream

Latest Blog Post:
Happy Diwali
Posts: 3,583
Location: in a distant land far away from reality
Trades: 0
it's impossible to make a Javascript hit counter.

The reason is this: Javascript runs only in the browser of the person visiting your site. It can only make changes on the visitor's computer. So while it's possible to count how many times you, personally, have visited the site it's not possible to count how many times ANYONE has seen the site as javascript has no way of accessing the server on which your site is stored.

If you want to make your own hitcounter then I would suggest using a backend technology such as ASP, PHP, CGI.

If you're not into that there are many free hitcounters available..
__________________
Praveen
Smilies - Celebs - Short URLs - Indian Food - Wild Creek

Useful Threads, Tutorials and Resources
Graphics - Templates - Dreamweaver - Javascript - SEO - Ruby on Rails - Ajax Tutorials - More Ajax - CSS - More CSS
praveen is offline
Reply With Quote
View Public Profile Visit praveen's homepage!
 
Reply     « Reply to Javascript-Counter Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10953 seconds with 13 queries