Author's Comments
Look carefully for specific instructions
LOOK AT ALL OF THIS.
--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).
--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).
--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.
--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.
--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. =]
--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).
--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).
--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.
--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.
--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 Comments
Showing latest 1 of 1 comments