<% @PageLanguage = " C# " AutoEventWireup = " true " CodeFile = " Default.aspx.cs " Inherits = " _Default " validateRequest = " false " %>
<! DOCTYPEhtmlPUBLIC " -//W3C//DTDXHTML1.0Transitional//EN " " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
< htmlxmlns = " http://www.w3.org/1999/xhtml " >
< headrunat = " server " >
< title > 无标题页 </ title >
< scriptlanguage = " javascript " type = " text/javascript " >
// 用javascript进行声音播放控制
functionManageSoundControl(action)
... {
varsoundControl
=document.getElementById("soundControl");
if(action=="play")
...{
soundControl.play();
}

if(action=="stop")
...{
soundControl.stop();
}

}

</ script >
</ head >
< body >
< formid = " form1 " runat = " server " >
< tablewidth = " 100% " >
< tr >
< td >
< embedid = " soundControl " src = " 求佛.mp3 " mastersoundhidden = " true " loop = " false " autostart = " false " ></ embed >
< inputid = " btPlay " type = " button " value = " 播放 " onclick = " ManageSoundControl('play') " />
< inputid = " btStop " type = " button " value = " 播放 " onclick = " ManageSoundControl('stop') " />
</ td >
</ tr >
</ table >
</ form >
</ body >
</ html >

更多相关文章

  1. android声音播放之SoundPool的应用,让你的按钮从此有声有色

随机推荐

  1. SQL 内连接,左外连接,右外连接,全连接
  2. 用map代替纯JavaScript对象[每日前端夜话
  3. 数据库数据完整性
  4. Java内存模型-堆和栈
  5. 数据库-事务处理
  6. 一位程序员的爱情故事
  7. 数据库-范式
  8. Java内存模型-JMM简介
  9. SQL语句类别
  10. 软件架构师之基本素质