Web Hosting Talk







View Full Version : Javascript High Score Tables


cjtenny72
07-10-2004, 09:19 PM
:confused: I need javascript code that lets a person enter their name into a high score table that could be dumped into a javascript game. The game is quite simple, and the variable that has the person's score is called finaltime but I would want a window that pops open automatically and lets the person input their name into a box and when they press submit then they see the list of high scores (top 20). Could someone please post some code for this? Also, could they make it so that the person had to input less than 30 characters? Thanks.:spiny:

Wojjie
07-13-2004, 09:52 AM
Are you talking about top20 for all users that visited the website? In that case you are better off using a bit of ASP/PHP.

kneuf
07-13-2004, 12:13 PM
you could probably do the users top20 (only they will see it) and it will show them there best scores with javascript and using cookies... i believe that is how some sites do it

cjtenny72
07-13-2004, 03:38 PM
I don't know any language fully, only a tiny bit of java, lots of html, and I know no javascript but it is simple enough to figure out bits of it. I would prefer what wojjie mentioned, but I don't know asp or php.

Wojjie
07-13-2004, 06:20 PM
Do you know how to create mysql tables and databases? Or should I show you a code snipet which uses a file?

Lastly, what scripting language do you have access to? PHP or ASP?

cjtenny72
07-14-2004, 10:11 AM
Originally posted by Wojjie
Do you know how to create mysql tables and databases? Or should I show you a code snipet which uses a file?

Lastly, what scripting language do you have access to? PHP or ASP?
I don't know how to create either of those, sorry. While attempting to run a games website with a friend which will be hosted at surfspeedy this summer (not up yet) I am also writing a game with another friend from scratch... busy summer... At surfspeedy I will have access to PHP and I can probably develop both on my computer, running mandrake linux 9.2 download edition on KDE. However, I know nothing of either... but still, I know all programming basics and can figure out bits of a language very quickly... so I will be able to understand many complicated things... but forget my endless blather and just know that I will be able to figure out most programming code, have access to php, and do not know how to create mysql tables and databases (but if given one I could probably tune it to fit my game)