Client LoginLogin

How can I make or find a website counter that you click to raise or lower the number? Preferably html?

General discussion about web site design, layout, html, DHTML, CSS etc

How can I make or find a website counter that you click to raise or lower the number? Preferably html?

Postby kaga » Thu Nov 19, 2009 1:05 am

So I have a website, I have a counter, not a hit counter though, this is a manual counter I have to edit in the html editor every time I need to raise the number. I need to know if its possible to get or create an html counter with little buttons you click to raise and lower the number.

like, I'm kind of visualizing it as just the number, and below it or beside it little arrows to raise and lower it, or anything similar to that, just as long as its manually raisable and lowerable without having to edit the html text.
kaga
 
Posts: 538
Joined: Wed Aug 26, 2009 5:04 pm

How can I make or find a website counter that you click to raise or lower the number? Preferably html?

Postby freddie » Thu Nov 19, 2009 1:40 am

You can't do it with HTML, nor with javascript: you need a server-side script (ie php) and some way of storing the value (flat-file of database).
freddie
 
Posts: 520
Joined: Wed Aug 26, 2009 5:04 pm

How can I make or find a website counter that you click to raise or lower the number? Preferably html?

Postby tiago » Thu Nov 19, 2009 1:44 am

Is this just for a single user, or multi-user?

For e.g., for an initial value of 0, if one user increments the counter to 5, should all other users see it as 5, or 0?

if it's just for a single user, then you could use java-script to do the trick. Or, for the latter it's bit more complex...
tiago
 
Posts: 488
Joined: Wed Aug 26, 2009 5:04 pm


Return to Web Design and Layout

Who is online

Users browsing this forum: No registered users and 1 guest

cron