恩.你可以在onload()或onreadystatechange()里给按钮指定行为:
buttonelement.onmouseover=function(){....}.这两个动作是在网页下完后触发。或者你干脆用 if(eval('window.Medial'))来判断是否页面已经有了这个元素(tag).
buttonelement.onmouseover=function(){....}.这两个动作是在网页下完后触发。或者你干脆用 if(eval('window.Medial'))来判断是否页面已经有了这个元素(tag).
75行是
if(document.play_sound){
function playsong(){
if(document.play_sound){
play_sound.play();
}
}
function stopsong(){
if(document.play_sound){
play_sound.stop();
}
}<embed name="play_sound" src="home sound/ling.mid" loop=true autostart=false hidden=true>
比如:
<BODY>
<div id=theDiv>dddddd</div>
<script language=javascript>
alert(document.theDiv); //错误
alert(document.all.theDiv); //正确</script>
</BODY>试试 if(eval('window.play_sound'))
如放在</body>与</html>之间!!因为网页加载时~~还没有加载到该插件,就已调用脚本了!可能会报错!