Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    [Help] Javascript Quiz

    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

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,924
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    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.
    Last edited by Philip M; 07-29-2008 at 10:09 AM.

  • #3
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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


    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...
    Last edited by mamamiaw; 08-04-2008 at 08:31 PM.

  • #4
    Regular Coder ninnypants's Avatar
    Join Date
    Apr 2008
    Location
    Utah
    Posts
    504
    Thanks
    10
    Thanked 47 Times in 47 Posts
    You could use the Learning Bazillionaire 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.

  • #5
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi ninnypants

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

    Best Regards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •