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 3 of 3
  1. #1
    YDH
    YDH is offline
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question multiplication with points instead of 1 correct answer

    multiplication with points instead of 1 correct answer

    can you help me on this one? it must be a be a radio button multiplication type. each answer has corresponding points 0-5, 5 points is the best answer. you can arrange each answer in random points.
    there can be 2 similar points in 1 question. So it's not just a simple correct or incorrect type of quiz. It should work on both Firefox and IE.



    this is how it should look
    example..
    a quiz of 1-10

    Question number 1

    1. What is the best thing to do when you see an old woman crossing the street?

    a. I will help her, guide her (hidden point of this one is 5 points)
    b. I will shoot her (hidden point of this one is 0)
    c. I will ask a policeman to help her (hidden point is 3 points)
    d. I will talk to her and ask her to stop walking and wait for help (hidden point of this one is 3 points)
    e. I won't do anything. (hidden point of this one is 0 point)

    now you choose letter c, when you choose any answer they have a corresponding comment once you click a "check answer" button below each question.
    it says.. "Your answer is C., Why can't you help the old lady yourself?"


    now you choose letter a, when you choose any answer they have a corresponding comment once you click a "check answer" button below each question.
    it says.. "Your answer is a., Very good!"

    ... all answers in all questions has corresponding comment once you click the check answer button.

    YOU CAN ONLY TRY TWICE for each question to get the best answer...

    Then at the end of the quiz of 1-10, there's a final button "See Score"

    Let's say that you scored 1 out of 20 correct, (since there's 100 points in total score)


    "you have 3 points out of 100, 5% Very Poor. You are unacceptable to society."



    0-25% = "Very Poor. You are unacceptable to society"
    26-50% = "Poor. You need to improve your attitude"
    51-75% = "Acceptable. You are improving!"
    76-100%= "Outstanding. You don't have to take this quiz again."

    --------------------

    IS there a javascript like this?

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,010
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    See the posting guidelines.

    We are not here to write your web pages for you - we are here to help with specific coding problems.

    Try looking at www.hotscripts.com

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Since I have already written the code to do what you want I will save you some time in hunting for it by telling you where I put my version.

    http://javascript.about.com/library/blquizf.htm

    I also have another variation on it at

    http://javascript.about.com/library/blquizf2.htm
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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