Author's Comments

Look carefully for specific instructions


1. As you can see, there are four selections you can make for each question. Each answer will have a different result. You will need to create files named CHOICE1.html, CHOICE2.html, CHOICE3.html, & CHOICE4.html (you may rename them if you wish; if you decided to, you must change the names in the script code).

2. You can rearrange the order of the answers for the question, just make sure you have a value for numbers 1, 2, 3, & 4 (the numbers going with their CHOICE.html results).

3. If you want to add more questions, then their value must say the number of the question that they are (ex: there are six questions now, so if you added another question, the value must say 'seven'.) You also need to add another:

"for (i = 0; i < f.?.length; i++) if (f.?[i].checked) value = f.?[i].value;
if (value == "1") { CHOICE1++; }
if (value == "2") { CHOICE2++; }
if (value == "3") { CHOICE3++; }
if (value == "4") { CHOICE4++; }

to your script code, changing the '?' to the number of which the question is.

4. If you want to add more answers, then you need to create more CHOICE.html files. You also need to add a:

"if (value == "?") { CHOICE?++; }"

to the script code and change the '?' to the choice number that will lead to a specific result.

5. Lastly, if you added more choices, then at the end of the code (where it says 'var out = "CHOICE1";'), put another if (value == "?") { CHOICE?++; } and replaced the '?' with the correct numbers

If you need any more help, just contact me. I think I covered everything for people who don't know what they are doing; but if you're confused/can't figure something out/I didn't explain something you need help with, then just ask and I'll try to help you out. :)

Script Code

Copy and paste to HTML


Script Comments

Showing latest 3 of 3 comments

@EdyEarl: The first 3 questions pertain to CSS, so you'll have to add different tags for that.

The last two questions, I'm not sure, that's not within my coding range. Sorry!

By Geheroe on Aug 29, 2011 9:01 pm

How to ad color to titles name
How to color background
How to Color the Questions and Answers
How to only Allow to sumit only once a week
member users only or guest users only

From EdyEarl

By edyearl on Apr 9, 2011 12:55 pm

Neat! I've always wanted to do this, thanks!

By emmasawr on Nov 29, 2008 7:56 am

Script Details

Author Geheroe View profile
Submitted on Nov 14, 2008
Page views 6,046
Favorites 14
Comments 3
Reviewer schizo View profile
Approved on Nov 15, 2008

Script Tags