> Hi list, > > How do you increase to a counter without refreshing the whole > page. For example if you check site www.gmail.com > <http://www.gmail.com/> under "Don't throw anything away." > heading there is counter which is increasing (could be > javascript magic) but other example is www.neopets.com > <http://www.neopets.com/> where time (seconds) is changing > without refreshing the whole page ( it is php script ) > > Any link or hint or code will be welcome ( even comments ) ;) > Thanks in advance. > salim > This is all done through JavaScript/DHTML/CSS. When you look at the Gmail site, view source and search for "Don't". You'll come to the line that has the growing MB amount. <span id=quota>Over 2000</span> megabytes (and counting) <snip> So then if you search for "quota" you'll see a number of references to it and other JavaScript functions that modify it in real time. I don't have any specific links to things, but there are tons of JavaScript copy and paste type sites that give you code snippets to use. I didn't see anything like that on Neopets, but it could simply not work in Firefox (and I admit I only spent about 30 seconds looking for it). But it's all JavaScript and such. Basic rule, if the page isn't refreshing at all, then it's probably all done on the client-side. If it's done on the client-side, then it's not PHP since that's all server-side. E.g., since nothing is being submitted to PHP, PHP is completely ignorant to the fact that this is going on. Hope that helps. -M -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php