//return false break; case 2: stateText = "暫停"; break; case 3: stateText = "播放"; document.getElementById("wait").style.display="none"; break; case 6: stateText = "緩存..."; break; case 8: stateText = "播放完"; //alert("beg") //alert(stateText) //document.getElementById("videoplay").controls.stop(); isPlayOver = true; //alert("play end"); //doNext(); //alert("end") break; case 10: stateText = "ready"; break; default: stateText.value = ""; } //alert(stateText+"="+NewState) //document.getElementById("statetext").innerHTML=stateText;