Hello,
I have just tried using the latest version of Opera on some code which
works OK with IE, FF and Safari but there is probably a better way of
writing the code.
A sound is played when the play image is clicked and then the user has
the choice of 2 images to answer a question.
The code below deals with the first of the 2 images which can be
clicked to answer the question. The other function is similar.
function checkThisFirst(what) {
var x = what.id;
var first_part_id = x.substring(0,2);
result[count] = "first";
document.getElementById('test'+count).className = 'hiddenDiv2';
// line above - play image made invisible
document.getElementById('test'+count+'1').classNam e = 'hiddenDiv2';
// line above - the first and second images made invisible
if (count<4) {
document.getElementById('test'+(count+1)).classNam e = 'visibleDiv2';
/ /line above - the next play button made visible
}
}
There are 4 sounds to be played so I need to get
result[1] to result[4]
Opera shows up the problem (?) in that the title Test 4 does not
become invisible after the 4th choice has been made as do Tests 1 to
Test 3 titles. With IE, FF and Safari Test 4 does become invisible.
Better way of dealing with the count equals 4 situation?
Thanks
Geoff
PS I hope I have made this clear - if not will post more of the code.