This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Doomkiller
Pages: 1 ... 13 14 15 16 17 18 19 [20] 21 22 23 24 25 26 27 ... 115
381
« on: July 05, 2011, 08:15:30 AM »
Is anyone on the pokecommiunity forums? I am doing a challenge and learning to make Fakemon.
I used to be. But I forgot my password and my email address e_e
On another note: I love my Beta Testing job <3
Beta testing job? lucky you :P
382
« on: July 02, 2011, 09:22:35 PM »
383
« on: July 02, 2011, 05:14:07 PM »
Ok, gonna go through this thread and add peps now
For reference: 武士道 Sgt Doom
384
« on: July 02, 2011, 05:38:54 AM »
385
« on: June 27, 2011, 01:52:31 AM »
They look pretty cool
386
« on: June 27, 2011, 12:54:06 AM »
Right, so its a matter of being in the wrong place at the wrong time?
Also, hows that pic coming along?
387
« on: June 27, 2011, 12:47:01 AM »
Hey, hows it going...
Apart from the above couple of posts...
388
« on: June 27, 2011, 12:44:16 AM »
389
« on: June 26, 2011, 09:05:27 PM »
Hmmm, tf2 is free now? I've had for ages though, got it with Garrys mod a while back. I'll update it now to play it later Met the Medic is awesome :D
Steam name: 武士道 Sgt Doom. Should have twinmill (car) as profile pic.
390
« on: June 26, 2011, 08:57:03 PM »
Hmm, didn't know about the doctype, we havnt been told about that in SDD :/ The rest of the stuff was because I pulled the basic code out of a tutorial the teacher gave us, to which he said was a mixed batch due to being very old. Ive fixed it up, and thanks for saying what's the correct tag for javascript, it always changed in the tutorials and I didn't know which one was which... Anyway, finished product, hopefully :D : https://gametechmods.com/uploads/files/Maths Quiz.rarNot really what I wanted, I wouldve liked if it kept the styling to the other page when you click check answer, but I have no idea how to do that :/
391
« on: June 23, 2011, 03:45:35 AM »
Have Mercy - Mark Spurlock
392
« on: June 23, 2011, 02:34:01 AM »
Alright, I figured out how to make it work early this morning. Should've realised that returning a value to the button that was pressed kinda doesn't do anything Oh and Serge, thanks for the Firebug suggestion, will go get it now.
If anyone wants to have a look at the code (as it is now, not currently finished) here it is:
<HTML> <HEAD> <TITLE>Maths Quiz</TITLE> <SCRIPT LANGUAGE = JavaScript> var problemCount; var doTen=false; var mistakes=0; var operation;
function getOperator(a) { var operation; operation=a; document.quiz.operator.value=operation; }
function newProblem() { var operation operation = document.quiz.operator.value document.quiz.firstone.value=4 rollDice(); document.quiz.operator.value = operation; document.quiz.second.value=rollDice(); document.quiz.attempt.value=""; }
function checkAnswer() {
var operation =document.quiz.operator.value; var a = parseInt(document.quiz.firstone.value); /* ensure Javascript knows they are integers*/ var b = parseInt(document.quiz.second.value); var answerA = a b; var answerS = a-b; var answerM = a*b; var answerD1 = a/b var answerD2 = Math.round(answerD1*Math.pow(10,2))/Math.pow(10,2); var attempt = document.quiz.attempt.value; if (operation == " ") ok=check(attempt,answerA); if (operation == "-") ok=check(attempt,answerS); if (operation == "*") ok=check(attempt,answerM); if (operation == "/") ok=check(attempt,answerD2); if (doTen && ok) { newProblem(); problemCount ; } }
function check(attempt,answer) { var ok; if (attempt==answer) { document.quiz.attempt.value = "YES"; ok=true; } else { document.quiz.attempt.value = "TRY AGAIN"; ok=false; mistakes ; } return(ok); }
function rollDice() { var randNumber; var rollValue; var num1; var num1=document.quiz.message.value if (num1=="You have chosen easy") num1=10; if (num1=="You have chosen normal") num1=50; if (num1=="You have chosen hard") num1=350; randNumber=Math.random(); randNumber=randNumber*num1; randNumber= randNumber 0.5; rollValue=Math.round(randNumber); return(rollValue); }
function difficult(message) { if (message==1) document.quiz.message.value="You have chosen easy"; if (message==2) document.quiz.message.value="You have chosen normal"; if (message==3) document.quiz.message.value="You have chosen hard"; } </SCRIPT> </HEAD> <BODY> <CENTER><H2> Maths Quiz </H2></CENTER> <BR> <FORM NAME = "quiz"> <INPUT TYPE="button" VALUE="Easy" onClick="difficult('1')"> <INPUT TYPE="button" VALUE="Normal" onClick="difficult('2')"> <INPUT TYPE="button" VALUe="Hard" onClick="difficult('3')"><BR> <INPUT NAME="message" TYPE="text" SIZE=40><BR> <INPUT TYPE="button" VALUE="Addition" onClick="getOperator(' ')"> <INPUT TYPE="button" VALUE="Subtraction" onClick="getOperator('-')"> <INPUT TYPE="button" VALUE="Multiplication" onClick="getOperator('*')"> <INPUT TYPE="button" VALUE="Division" onClick="getOperator('/')"><BR> <INPUT TYPE="button" VALUE="Get new problem" onClick= "newProblem()";><p> <INPUT NAME="firstone" TYPE="text" SIZE=5 > <INPUT NAME="operator" TYPE="text" SIZE=5 > <INPUT NAME="second" TYPE="text" SIZE=5 > <INPUT TYPE = "text" NAME = "attempt" SIZE=9><p> <INPUT NAME="try" TYPE="button" VALUE="Check my answer" onClick= "checkAnswer()"> </FORM> <CENTER> </BODY> </HTML>
Just shove it into a notepad document, then save as a html file.
393
« on: June 22, 2011, 06:22:50 AM »
Alright, to anyone that knows JavaScript, please tell me why the following code will not work, and how to make it work
<HTML> <HEAD> <TITLE>Maths Quiz</TITLE> <SCRIPT LANGUAGE = JavaScript> var problemCount; var doTen=false; var mistakes=0; var operation;
function Operator(message) { var operation; if (message == " ") operation=" "; if (message == "-") operation="-"; if (message == "*") operation="*"; if (message == "/") operation="/"; return (operation); }
function newProblem() { var operation operation = Operator(); document.quiz.firstone.value=4 rollDice(6); document.quiz.operator.value = operation; document.quiz.second.value=rollDice(4); document.quiz.attempt.value=""; }
function checkAnswer() {
var operation =document.quiz.operator.value; var a = parseInt(document.quiz.firstone.value); /* ensure Javascript knows they are integers*/ var b = parseInt(document.quiz.second.value); var answerA = a b; var answerS = a-b; var answerM = a*b; var answerD = a/b var attempt = document.quiz.attempt.value; if (operation == " ") ok=check(attempt,answerA); if (operation == "-") ok=check(attempt,answerS); if (operation == "*") ok=check(attempt,answerM); if (operation == "/") ok=check(attempt,answerD); if (doTen && ok) { newProblem(); problemCount ; } }
function check(attempt,answer) { var ok; if (attempt==answer) { document.quiz.attempt.value = "YES"; ok=true; document.face.src="happy.gif"; } else { document.quiz.attempt.value = "TRY AGAIN"; ok=false; mistakes ; } return(ok); }
function rollDice(sides) { var randNumber; var rollValue; randNumber=Math.random(); randNumber=randNumber*sides; randNumber= randNumber 0.5; rollValue=Math.round(randNumber); return(rollValue); }
</SCRIPT> </HEAD> <BODY> <CENTER><H2> Maths Quiz </H2></CENTER> <BR> <FORM NAME = "quiz"> <INPUT TYPE="button" VALUE="Addition" onClick="Operator(" ")";> <INPUT TYPE="button" VALUE="Subtraction" onClick="Operator("-")";> <INPUT TYPE="button" VALUE="Multiplication" onClick="Operator("*")";> <INPUT TYPE="button" VALUE="Division" onClick="Operator("/")";><BR> <INPUT TYPE="button" VALUE="Get new problem" onClick= "newProblem()";><p> <INPUT NAME="firstone" TYPE="text" SIZE=5 > <INPUT NAME="operator" TYPE="text" SIZE=5 > <INPUT NAME="second" TYPE="text" SIZE=5 > <INPUT TYPE = "text" NAME = "attempt" SIZE=9><p> <INPUT NAME="try" TYPE="button" VALUE="Check my answer" onClick= "checkAnswer()"> </FORM> <CENTER><IMG NAME = face SRC="happy.gif"> </BODY> </HTML>
Right, the intention was to get it for the user to choose what the operator is for the question, but it keeps poping up with undefined. Any suggestions or help would be well, helpful. Thanks.
394
« on: June 20, 2011, 02:34:57 AM »
Sweet
395
« on: June 20, 2011, 02:06:32 AM »
Ahhh righto then.
So, been able to get on your PC yet?
396
« on: June 20, 2011, 02:02:17 AM »
Hate T9? Whats T9?
397
« on: June 20, 2011, 01:50:58 AM »
I always imagined Scourge as Hiyori from "Lucky Star." (Glasses and long black hair, she's got a cute meganekko thing going) Cases in point: (Image removed from quote.)
Also WTF? Yui (dark green hair, cat-face and glasses) is NOT a "normal folk"
The irony is, I used to luck like her (just paler)
Say what? That really doesn't make much sense...
398
« on: June 19, 2011, 03:12:48 AM »
Got some new speakers and a new gaming headset. Both made by Creative. Definite improvement from the speakers I had (that came with my old windows 98..)
399
« on: June 18, 2011, 03:33:06 AM »
I still can't get Photoshop, so I can't color in my pic of Doomkiller (It's crap anyway TT-TT)
Awww show it anyway
400
« on: June 17, 2011, 08:05:23 AM »
I'm not complaining.
Look what I found! =D (Image removed from quote.) Pretty cool, huh? :3
Dnt mind the paint job on the car, but, its bwm, so paint wasted in my opinion :/
Pages: 1 ... 13 14 15 16 17 18 19 [20] 21 22 23 24 25 26 27 ... 115
|