| Education Queensland | EQ home | EQ search | EQ site map |
![]() |
| Online learning | Communication | Communities | Curriculum Exchange |
|
|
|
| Question# | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Group 1 – Option# | 1 | 2 | 3 | 4 | ||||||||||
| Group 2 – Option# | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
The option label should be attached to its input via the label
tag. The label tag includes the attribute for="qX"
– the same value as the id of the input.
Example: <input type="checkbox" name="q1"
value="1" id="q1" onClick="checkCheck(1, this.name,
this.value, this.form)"> <label for="q1">The
Washington Conference</label>
There is always one image per question.
Images must be named according to their question. For example, name="iq1"
– i means image, q1 is the question it's
attached to. Images should start as blank.gif with an empty
alt. The Javascript will change the image as appropriate.
Example: <img src="/learningplace/images/courses/interactive/blank.gif"
width="18" height="18" name="iq1" alt="">
The Done button must always include the following attributes:
type="button"name="Done"value="Done"onclick="checkChecks(G, Z, this.form)" –
where G is the number of groups and Z
is the number of questions/imagesExample: <input type="button" name="done"
value="Done" onClick="checkChecks(2, this.form)">
The Reset button must always include the following attributes:
type="reset"name="Reset"value="Reset"onclick="startAgain(Z)" – where Z
is the number of questions/imagesExample: <input type="reset" name="Reset"
value="Reset" onClick="startAgain(14)">
Below is the source code for the example.
It's preferable to link to a separate Javascript file although, for pages individually loaded into Blackboard, including the script within the HTML is acceptable.
There are three parts of the script that need to be modified:
The response image placeholders must always start as blank.gif.
Only change the value for the number of images –
for (var i=1; i<=numberofimages; i++) {,
and adjust the path to blank.gif – eval("iq"+i+".src
= \"blank.gif\"");.
Set a new variable for each question as an Array. The variables must appear as:
var vqX = new Array("start",true,false,true,true);
– where X is the group number and
true/false relates to the option number
as correct or incorrect.In the example above: Group 1 has four options and options 1, 3 and 4 are all correct; Group 2 has 10 options and options 2, 3, 5, 6 and 10 are all correct.
Set the paths of the response image variables as needed. Do not remove or rename these variables.
Below is the source code for the Javascript of the above example.
Copyright |
Disclaimer |
Acceptable use |
Privacy |
Internet linking |
Access keys |
Other languages
© The State of Queensland (Department of Education and Training) 2009.