![]()
Explore the Virtual Mall from these links:
View a mall diagram, review banners or text, see current offers, and search for the stores you want to shop.
This mall is designed for ease of use and to help you visually find what you are looking for.
Proceeds support WorkWebs.com and profits are presently donated to a Christian non-profit organization.
Paste or enter your input in this text box and then click within the box to generate the desired code.
The code appears in the second box. Copy it and paste it into a web page to use the script.
Syntax and samples are available below.
The Test Yourself script builder builds JavaScript HTML code to enable people to perform self-testing on any subject. This can be used by teachers or others interested in providing learning tools.
A sample can be found at http://www.cfna-stl.org/testyourself.htm. This sample provides a learning page for new Americans.
This sample input:
0000.*.cols.0003 there are 3 columns
0000.*.ovly.n results in separate response areas for each choice, no overlay of responses
0001.a.Do you like this sample question?
0001.b.0001.Yes.
0001.b.0002.No.
0001.b.0003.All of the above.
0001.c.0001.<b>You are correct!</b>
0001.c.0002.Well, you could try another question then.
0001.c.0003.Seems impossible!
0002.a.Which of the below have to do NOT have to do with math?
0002.b.0001.Square root
0002.b.0002.Trigonometry
0002.b.0003.Yogurt
0002.c.0001.Sorry, incorrect. The square root of a number is the number that multiplied by itself results in the specified number. For example, the square root of 9 is 3.
0002.c.0002.Trigonometry is a field of study in mathematics. Check it out in <a href=\"http://www.wikipedia.com\" target=_new>WikiPedia</a>.
0002.c.0003.<b>You are correct!</b>
produces the code in this page: http://www.workwebs.com/TestYourself/sample1.htm
This sample input:
0000.*.cols.0003 there are 3 columns
0000.*.ovly.y results in same response areas for each choice, overlay of responses
0001.a.Do you like this sample question?
0001.b.0001.Yes.
0001.b.0002.No.
0001.b.0003.All of the above.
0001.c.0001.<b>You are correct!</b>
0001.c.0002.Well, you could try another question then.
0001.c.0003.Seems impossible!
0002.a.Which of the below have to do NOT have to do with math?
0002.b.0001.Square root
0002.b.0002.Trigonometry
0002.b.0003.Yogurt
0002.c.0001.Sorry, incorrect. The square root of a number is the number that multiplied by itself results in the specified number. For example, the square root of 9 is 3.
0002.c.0002.Trigonometry is a field of study in mathematics. Check it out in <a href=\"http://www.wikipedia.com\" target=_new>WikiPedia</a>.
0002.c.0003.<b>You are correct!</b>
produces the code in this page: http://www.workwebs.com/TestYourself/sample2.htm
The commands are as follows:
All commands begin with a sequence (aaaa) which must be 4 characters. All commands will be sorted by the entire command string. The first 4 characters will determine the sequence of command processing.
For simplicity, it is recommended to use 4 digits.
Following these 4 sequence characters is a separator character. A "." (period) is recommended.
The next character determines the specific command for this line.
Choices are: * a b c
The character after the command indicator is again a separator. The "." (period) is recommended.
Following this is data specific to the command.
For the "*" command, the command data can be one of these choices: cols ovly
The cols option of the * command specifies the number of columns there are in each of the items that follow (once sorted). This must be a 4 digit number.
The ovly option of the * command must specify one of these choices: yn
If "y", then responses should overlay each other.
If "n", then the responses will not overlay each other.
For the "a" command the data is the question to ask.
For the "b" command the data is a choice sequence number and the choice information, per the samples.
For the "c" command the data is a response for the matching choice, per the samples.
The * commands can recur and will change the layout of the following a b and c commands.
It is easiest to learn this through the samples, since it it really quite simple to understand, but hard to describe.
If you are embedding characters that require escape codes in JavaScript, like the " mark, place \ in front of them. If the resultant script errors, it is likely because of some special character embedded in your input.
Questions or comments can be sent to:
Visits: