SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2011
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looking to build a JS or jQuery quiz

    I am looking to build a quiz like the one used for quizpoint.

    So far i have an associative array
    var quiz = new array(array("Question 1", "Answer 1"),array("Question 2", "Answer 2"));
    And so on.

    A random question will be asked and its answer displayed among 3 other randomly selected answers.
    After going through 10 or 20 questions the results are shown i.e. 18/20 along with the questions and correct answers showing the user which they got right or wrong.

    Any help how to make it or if you know a site that does it for you would be great

    CP

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,861
    Mentioned
    206 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    You might want to check this out: http://stackoverflow.com/questions/4...iz-with-jquery
    If you look at the link in what is currently the top answer, the person who answered the question has made a good demo site, which does exactly what you want.
    If I were you, I'd pull his page apart, check out the source code and see what he has done.

    You might also like Slick quiz, which is a jQuery plugin for "creating pretty, dynamic quizzes".
    Homepage (with demo): http://www.jewlofthelotus.com/2011/1...now-on-github/
    Github repo: https://github.com/jewlofthelotus/SlickQuiz
    WP plugin: http://wordpress.org/extend/plugins/slickquiz/


Bookmarks

Posting Permissions

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