...

View Full Version : [Help] Javascript Quiz



mamamiaw
07-29-2008, 09:11 AM
Dear all,

Firstly thanks for reading this post. I have couple questions n problems to solve, and i believe all the masters and gurus here are kind enough to help me. I am not a programmer, nor that i'm experience with jscript. But i have this task or challenge to create a quiz for my class (i'm a part time teacher).

I have tried it on flash but i'm still finding another solution, which i think is easier, that is jscript.

I believe most of you know or ever heard the "who wants to be a millionaire" quiz. Basically what i'm tryin to create is quite similar to that. The only differences are:

1. There are 8 question before you finally win the game, and on question 5,6,7,8, there're certain prizes if they can answer it correctly (ex. if a contestant answer rightly question number 5, they will win prize A, and may continue to next question, which is question number 6, if he/she failed to answer number 6, he/she only win prize A)

2. Every question (1-8) is considered set, where every set consisted of 8-10 questions where the question on every session/game appears randomly (picked/generated randomly)

3. Every time a contestant wins a prize there will be sound played on.

4. There will be background music played on this quiz.

So is it possible to create those?, if yes can anybody enlighten me here?

Here enclosed the layout picture of what the quiz will appear.

Anyway, again thanks for reading, and thanks in advance for kindly answering.

Best regards

Philip M
07-29-2008, 10:37 AM
Yes, of course what you want is perfectly possible. But this forum exists to help people who have a particular or specific JavaScript problem. It is not a free coding service. Perhaps you should post in the Web Projects section

Are you aware that jscript is Microsoft's proprietary version of Javascript?

I should have added that in any case Javascript is not suitable for this sort of thing as the source code (and of course the answers to the questions) can easily be read by the user. You need a server-side language such as PHP.

mamamiaw
08-04-2008, 07:37 PM
Hi, more explanation on my questions

There will be no ask the audience or phone a friend
This game will be a Pure javascript , played offline.
The contestant (the student) will only see the screen, they're not allowed to have keyboard or mouse.

Anyway, here i upload the thing that i create...to explain the situation.

DOWNLOAD HERE (http://www.lajusaja.com/quizhelp.zip)


As u can see...on the javascript file (millquest.js) , i only manage to create a set....
which are:
stemarray[0] ='Monas adalah singkatan dari:'
answer[0] ='B'
adistract[0] ='Monumen Naskah'
bdistract[0] ='Monumen Nasional'
cdistract[0] ='Museum Nasional'
ddistract[0] ='Museum Naskah'

...all till number 7

But what i want to create are:

for question number 1-3 (which the contestant will win 100 point to Hadiah A), they consist of 75 questions that will be randomly displayed each time the quiz begin

for question number 4-5 (which the contestant will win 100 point to Hadiah B), they consist of 75 questions that will be randomly displayed each time the quiz begin

for question number 6 (which the contestant will win 100 point to Hadiah C), they consist of 75 questions that will be randomly displayed each time the quiz begin

for question number 7 (which the contestant will win 100 point to Hadiah D), they consist of 75 questions that will be randomly displayed each time the quiz begin

for question number 8 (which the contestant will win 100 point to Hadiah E), they consist of 75 questions that will be randomly displayed each time the quiz begin

So.....anyone interested to help? ^_^


Thanks in advance...

best regards...

ninnypants
08-04-2008, 11:35 PM
You could use the Learning Bazillionaire (http://www.uvsc.edu/disted/game_garden/) game generator from my place of work all you will need to do is create a respondus file of your questions and answers,.
the format is
1. Your question here
*a. correct answer
b. answer
c. answer
d. answer

You will have to scroll down and select the checkbox next to the bazillionaire game then go to the bottom of the page and upload your file the server will then make a zip file for you to download that contains the game.

mamamiaw
08-05-2008, 04:01 AM
Hi ninnypants

Many thanks for the link....i'll try it

Best Regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum