Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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".


Please login or register to view this content. Registration is FREE
KRYPTOR is offline
Reply With Quote
View Public Profile Visit KRYPTOR's homepage!
 
 
Register now for full access!
Old 02-08-2004, 09:26 PM
praveen's Avatar
Life is a Dream

Posts: 3,591
Name: Praveen
Location: Chennai, India
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..
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
praveen is offline
Reply With Quote
View Public Profile
 
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.25215 seconds with 12 queries