javascript高手帮看代码为什么会出错?
这是一个用javascript制作声音按钮的代码,为什么我加入下面的代码后会报错呢?先谢了。
//Customize Dynamic Audio Link 自定义动态声音链接
function DynamicAudioLink(){
open("http://localhost"
}
//Customize Dynamic Audio Mouse Over Color 自定义动态声音mouseover颜色
function AudioOver() {
do***ent.Audio.button.style.background="#999999"
do***ent.Audio.button.style.color="white"
}
//Customize Dynamic Audio Mouse Down Color 自定义动态声音mousedown颜色
function AudioDown() {
do***ent.Audio.button.style.color="#cccccc"
}
//Customize Dynamic Audio Mouse Off Color 自定义动态声音mouseOff 颜色
function AudioOut() {
do***ent.Audio.button.style.background="#666666"
do***ent.Audio.button.style.color="#ffffff"
}
//Customize Dynamic Audio sound 自定义动态声音
function playHome()
{
do***ent.all.sound.src = "200501.wav";
}
do***ent.write('<bgsound id="sound">')
//Customize Button Style 自定义按钮样式
do***ent.write('<style type="text/css">'+'<!--')
do***ent.write('.select{background:#666666;border-color:"#999999";color:"#ffffff";font-family:Arial,Helvetica,Verdana;font-size:10pt;font-weight: bold;}'+'-->'+'</STYLE>')
do***ent.write('<center><form name=Audio><table><tr>')
do***ent.write('<td><input class="select" name=button type="button" value="Dynamic Audio" onclick="DynamicAudioLink()" onMouseOver="AudioOver();playHome()" onMouseDown="AudioDown()" onMouseOut="AudioOut()"></td>')
//下面几行是我加入的代码
do***ent.write('<td><input class="select" name=button type="button" value="Dynamic Audio" onclick="DynamicAudioLink()" onMouseOver="AudioOver();playHome()" onMouseDown="AudioDown()" onMouseOut="AudioOut()"></td>')
//上面几行是我加入的代码
do***ent.write('</tr></table></form></center>')