<head runat="server">
<title></title>
<script language="javascript" type="text/javascript">
function play()
{
if (document.getElementById("Checkbox1").checked)
{
document.WMPlay.controls.currentPosition = 0;
document.WMPlay.controls.play();
document.WMPlay.settings.setMode("loop", true);
}
else
{
document.WMPlay.controls.Stop();
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="Checkbox1" type="checkbox" onclick="play();" />
<object id="WMPlay" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="400"
height="400" style="visibility: hidden;">
<param name="url" value="F:/搜集/快乐你懂的 合唱 绽放的微笑.mp3" />
<param name="AutoStart" value="False" />
</object>
</div>
</form>
</body>

posted on 2012-10-27 18:13  求知的我  阅读(188)  评论(0编辑  收藏  举报