Hi guys, I'd like to create a simple counter in html+css. Could you teach me that? Can it be text counter,not the standard image one? I would like to have a simple website that goest like this: <body> Hi, you are our XXXXXX th visitor! </body> HTML: Please help me if you can Thanks in advance!
What you are asking about has NOTHING to do with CSS. In order to have a working counter you have to store the number on the SERVER using a languages like PHP or ASP... and using a database might help so the value can be locked to avoid collisions.
Hi, Counter functions there are PHP,JavaScript, asp.net, only cound your visiters.. Ex: PHP COUND CODE: <?php session_start(); if(isset($_SESSION['views'])) { $_SESSION['views']++; } else { $_SESSION['views']=0; } echo $_SESSION['views']; ?>
Wow, that code's a laugh -- not sure what good it is telling the user how many times they've viewed the page this session... since sessions are access (visitor) specific.