This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:questions:random [23.03.2016 15:43] – [Option 3] admin | en:create:questions:random [28.07.2019 12:39] – [Application] urbanalgae | ||
---|---|---|---|
Line 56: | Line 56: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | |||
+ | //in case your image width does not display properly, you can include this coding for width for the html code: | ||
+ | |||
+ | html(' | ||
+ | <img src="' | ||
+ | </ | ||
+ | '); | ||
Line 72: | Line 80: | ||
// Array, that saves an image for every group | // Array, that saves an image for every group | ||
$bilder = array( | $bilder = array( | ||
- | 1 => stimulusA2.jpg | + | 1 => 'stimulusA2.jpg', |
- | 2 = stimulusB2.jpg | + | 2 => 'stimulusB2.jpg', |
- | 3 = stimulusC2.jpg | + | 3 => 'stimulusC2.jpg' |
); | ); | ||
// With the square brackets an element from the array is read | // With the square brackets an element from the array is read | ||
Line 142: | Line 150: | ||
'); | '); | ||
// Create the fitting question ID and show the question using question() | // Create the fitting question ID and show the question using question() | ||
- | $qstID = 'AB' | + | question(id(' |
- | question($qstID); | + | |
</ | </ | ||