实现鼠标放到链接上(onmouseover)发出声音
〈HEAD〉
〈META http-equiv=Content-Type content=“text/html; charset=gb2312“〉
〈/HEAD〉
〈BODY〉
〈SCRIPT〉
function sound()
{
document.write(“〈bgsound src=’mail.wav’〉“);
}
〈/SCRIPT〉
〈a href=“#“ οnmοuseοver=“javascript:sound()“〉声音〈/a〉
〈/BODY〉
〈/HTML〉
另外的代码:
〈OBJECT ID=’AlvinWmaPlayer’ CLASSID=’CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6’ type=’application/x-oleobject’ width=’0’ height=’0’ style=’position:relative;left:0px; top:0px;width:0px;height:0px;’〉
〈param name=’URL’ value=’firework.wav’〉
〈param name=’uiMode’ value=’invisible’〉
〈/OBJECT〉
〈a οnmοuseοver=“AlvinWmaPlayer.controls.stop();AlvinWmaPlayer.controls.play();“〉声音〈/a〉