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
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question function for a quiz

    Hello,

    It's a bit difficult to explain what I need but I'll try.

    There is a quiz that I have to make. It's of a map of an image, and the client must click on a number (19) of parts of the picture. On every clicking on the left must appear a note saying for example: "You have found 11 so far".

    When the client finishes he must click on the "next" button and on the other page a result has to be displayed - for example: "You have found 11 damages".

    The only thing that occured to my mind was a function that starts with the onClick function of every part of the mapped image (function quiz(x))but as far as the parts to click on are 19 the function "quiz(x)" happend to be so long because it has to check first if the person already clicked on this image, and second which image on count is it. So the function is about 2000 rows of script and I don't think this is normal.

    If you have any idea of another way to check the answers, please let me know.

    P.S. The "You have found 11 so far" I've made as 19 .gif images, because I don't know any other way to do it.
    Also I must not use Java, just Java script.

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Posts
    400
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Post a link to the page or attach a zip-file with your code, because without seeing what you've done it's difficult to comment.

    But... 2000 lines of script does sound horribly bloated.

  • #3
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I already found a sollution, Thanks anyway!

    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
    •