View Full Version : don't leave me hanging. please help
moony
08-12-2003, 07:18 PM
Hi everyone,:rolleyes:
I have a qustion about the hangman (http://wsabstract.com/script/script2/hangman.shtml ) javascript in javascript kit. Hangman a great game and I just would like to know if there is away that it can be changed so that it can increase or decrease by a number I can choose, not increase just +1 or decrease -1.
Please Help! Thank You:)
Drakain Zeil
08-12-2003, 07:48 PM
...game and I just would like to know if there is away that it can be changed so that it can increase or decrease by a number I can choose...
Yes you proably can, it is code after all.
But what integer, exactly, do you want to alter?
moony
08-12-2003, 08:24 PM
while I don't know really what to do. I am not to good that javascipt that this point. A think some need to been add. Right now the javascript is "document.f.score.value++;" and "document.f.score.value--;". Going one up if you win and one down if you lose. So what would I have to add to make it say to score if you win value +10 and the score if you lose -20.
I hope you understand me ok. thank you for your help Drakain Zeil.:confused:
wickford
08-12-2003, 10:13 PM
Replace
document.f.score.value++;
document.f.score.value--;
with
document.f.score.value+=10;
document.f.score.value-=10;
where 10 is how much you want your score to increase or decrease.
moony
08-12-2003, 10:30 PM
wickford or someone other,:confused:
I have try to do that before but it will not work. When I change it and try used it a message popup saying "syntax error". Is there any other why you know or do you know some how to make it work like you say above.
Thank For Try it least.:)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.