error: object doesn't support this property or method
line: 10
char: 30 (actually, char 30 is the A in A.stop()
Here's the code
<html>
<head>
<script language="JavaScript">
<!-- Sound Script Source
var audioOn = false;
function audioDo(doWhat,toWhat){
if(audioOn){
var A = eval('document.'+toWhat);
if (A != null){
if (doWhat=='stop') A.stop();
else{
if (navigator.appName == 'Netscape') A.play();
else{
if (document.M == null){
document.M = false; var m;
for(m in A) if (m == "ActiveMovie"){
document.M = true; break;
}
}
if (document.M) A.SelectionStart = 0;
if (document.M) A.play();
}
}
}
}
}
//-->
</script>
This works on the machine I'm on now. I have to try it on my machine at home. The other script wasn't working on either although it was working before my drive was reformatted. The script never worked on Netscape. I've had to reinstall MSIE and Netscape which must have something to do with why the other script doesn't work. Have you any ideas why it doesn't work?
Maybe now I can get back to the MySql Log Update problems I was having. I'm seeing a priority problem here. I choose to work on a mouseover sound problem before a database recovery problem. Lucky nobody's watching my workload. But let's face it, which one is more fun?.
Bookmarks