Didn't try but following what you say : move the mouse,
it seems that Safari keeps focus on the clicked image
and avoid the changing
see bellow
<div id="test1" class="visibleDiv2">// perhaps here :
<h3>Test 1:</h3>
<IMG alt="image" id="a10" src="../assets/images/play1.gif"
onclick="musicSelect(this);">
</div>
<div id="test11" class="hiddenDiv2">
<IMG alt="image" id="a11" src="../assets/images/mypitch1.gif"
onclick="checkThisFirst();">
<IMG alt="image" id="a12" src="../assets/images/notmypitch1.gif"
onclick="checkThisSecond();">
</div>
<div id="test2" class="hiddenDiv2">
<h3><em>Test 2:</em></h3>
<IMG alt="image" id="a20" src="../assets/images/play1.gif"
onclick="musicSelect(this);">
</div>
<div id="test21" class="hiddenDiv2">
<IMG alt="image" id="a21" src="../assets/images/mypitch1.gif"
onclick="checkThisFirst();">
<IMG alt="image" id="a22" src="../assets/images/notmypitch1.gif"
onclick="checkThisSecond();">
</div>
etc
onclick() in the first block calls musicSelect(this)
function musicSelect(what) {
if (egfinished2 != 'yes') {
alert('Click again once the last sound above has finished');
return;
}
t = what.id.substring(1,2);
what.onclick = '';
what.src = played.src;
soundManager.createSound({
id:'mySound'+t,
url:'../assets/audio-new/Track' + (+t) + '.mp3',
onfinish:function(){document.getElementById('test' +t+1).className =
'visibleDiv2'} });
soundManager.play('mySound'+t);
count++;
what.blur();
}If the blur() up there doesn't work, try :
when the sound is finished
document.getElementById('test'+t+1).className = 'visibleDiv2'
and it is now that the mouse has to be moved to get the .className =
'visibleDiv2' to work. I have also tried .style.display etc and no
different.
onfinish: function() {
document.getElementById('test'+t+1).focus();
// or probably better ... :
// location='#test'+t+1;
document.getElementById('test'+t+1).className = 'visibleDiv2';
}
});
--
sm