On 15 May 2008 20:26:58 GMT, "Evertjan."
<ex**************@interxnl.netwrote:
>Geoff Cox wrote on 15 mei 2008 in comp.lang.javascript:
>I am using Safari (v3.1.1) on a PC and click on an image to play a
sound. Once the sound is finished 2 images appear and the user has to
select one of them.
This works perfectly well with IE, FF and Opera but with Safari the 2
images only appear if you move the mouse cursor after the sound has
finished!!
Why?
Since we just all lost our christal balls,
better post the relevant code.
OK!
t = what.id.substring(1,2);
what.onclick = '';
what.src = played.src;
soundManager.createSound({
id:'mySound'+t,
url:'../assets/audio/Track' + (+t) + '.mp3',
onfinish:function(){document.getElementById('test' +t+1).className =
'visibleDiv2'} });
soundManager.play('mySound'+t);
count++;
it appears that to get the onfinish part to work you have to move the
cursor. I am being told by others that Safari has a bug related to
this. Know of anything?
Cheers
Geoff