<script>
function Play() {
wmp.controls.play();
}
function Stop() {
wmp.controls.stop();
}
function Pause() {
wmp.controls.pause();
}
function setVolume(act) {
currentVol = wmp.settings.volume;
if(act == "up") {
targetVol = currentVol + 5;
if(targetVol >= 100) targetVol = 100;
} else if(act == "down") {
targetVol = currentVol - 5;
if(targetVol <= 0) targetVol = 0;
} else if(act <= 100) {
targetVol = act;
}
wmp.settings.volume = targetVol;
}
</script>
<OBJECT id=wmp classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height=70>
<PARAM NAME="URL" VALUE="
http://www.qq500.com/music/music2/445.wma">
<PARAM NAME="autoStart" VALUE="1">
<PARAM NAME="volume" VALUE="50">
</OBJECT><br>
<input type=button value="播放" onclick="Play()">
<input type=button value="暂停" onclick="Pause()">
<input type=button value="停止" onclick="Stop()">
<input type=button value="音量+" onclick="setVolume('up')">
<input type=button value="音量-" onclick="setVolume('down')">