1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How can I make a counter which counts the number of visitors?

Discussion in 'C#' started by qsearch, Jan 4, 2013.

  1. #1
    Hi,everyone!
    How can i make the counter which count of the number of visitors by images!
    Example:
    Untitled.png
    Help me???
    SEMrush
     
    qsearch, Jan 4, 2013 IP
    SEMrush
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    There are thousands of counters all over the web. The basic idea is that when the page loads, you read a record from the "counter" table (which only ever has one record), increment the number in the only field in that record, update the record and display the number. You can use plain text or graphics. (What you showed is a font that looks like an analog speedometer or 10 graphics of the digits 0-9.)
     
    Rukbat, Jan 5, 2013 IP
  3. anurag355

    anurag355 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    3
    #3
    you can put this code into you webpage

    <!-- Start of SimpleHitCounter Code -->
    <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1488323&f=65535&b=0" border="0" height="18" width="83" alt="web counter"></a><br><a href="http://www.simplehitcounter.com" target="_blank" style="text-decoration:none;">web counter</a></div>
    <!-- End of SimpleHitCounter Code -->
     
    anurag355, Jan 25, 2013 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    Anurag, 4 problems.

    1) That's your uid (or one you created for this thread) - he has to sign up for his own account.

    2) The counter increments by 2, not 1, so you get double the number of hits you actually have.

    3) You have to use their graphic, you can't make your own.

    4) If the site goes down, you have no hit counter.

    Doing it yourself, using your own site, eliminates all these problems.
     
    Rukbat, Jan 25, 2013 IP