| 发表于:2007-07-18 21:57:09 楼主 |
<html> <head> </head> <script type= "text/javascript "> function controlsound() { //alert( "pause "); document.mm_controlsound.play(); } </script> <body onload= "controlsound(); "> <embed name= 'mm_controlsound ' src= 'msg.wav ' loop=true autostart=false hidden=true> </embed> </body> </html> 以上代码在iis6。0,及tomcat下跑过,如果alert执行则无问题,否则浏览器报js错误,一直不到原因,感觉好象是在浏览器还未加载完 <embed ...> </embed> 这段代码时执行了document.mm_controlsound.play();不知有高手可否解决?恩感! |
|
|
|
|