Click to See Complete Forum and Search --> : I NEED A SCRIPT I cant find anywhere!


oilytom
11-07-2003, 06:30 PM
hi i need to find a peice of javascript to make a scoreboard for a game on my website, can anyone help?

Khalid Ali
11-08-2003, 05:50 AM
your question is way too vague....give us more details..

oilytom
11-12-2003, 04:27 AM
i got some javascript from this site, Rocket blaster, and your score, accuraccy hits etc, comes up when you press space bar, i want to put these scores on a seperate scoreboard and add a timer for ppl to have a certian ammount of time. thx

clairec666
11-12-2003, 04:55 AM
For the timer:

<!-- position this where you want it on the page-->
<script type="text/javascript">
var timer1 = 0;
function start_timer() {
document.all.timer1.innerHTML = timer1;
timer1++;
setTimeout("start_timer()",1000);
}
</script>
<body onload="start_timer()">
<div id="timer1"></div>

Scriptage
11-12-2003, 05:24 AM
You haven't ended the comment and the timer will only work in ie

clairec666
11-12-2003, 05:25 AM
What? I did end the comment!

Scriptage
11-12-2003, 05:27 AM
lol sorry,
ha ha ha ha ha

i was thinking it was a hide javascript comment, didn't look at it enough lol.

Sorry my mistake

clairec666
11-12-2003, 05:30 AM
:D you daft sod,
and you were right about the 'only working in ie' bit, i'm not that great at cross-browser stuff. apologies if anyone wanted that script for netscape.