网页播放声音文件 我有A.mp3 , B.mp3, C.mp3(对应的声音分别是“A”,“B”,“C”) 三个文件,现在想通过JS调用,读出 “BCA”该怎么做,很急,请大虾们帮帮忙,不知道也帮忙顶一下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 调用播放器的OnEnd事件加载下一个文件 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title> 无标题页</title> <script type="text/javascript">function playSound(src){var _s = document.getElementById('snd');if(src!='' && typeof src!=undefined){_s.src = src;}}</script></head><body> <bgsound id="snd" loop="0" src=""> <input type="button" value="声音" onclick="playSound('1.mp3')" /></body></html>我百度 测试过的。可以播放声音。 这是禁用google跳转统计的代码,可否再改一下把google搜索的https改为http? 请教一个正则表达式的问题 求js判断浏览器版本 javascript函数有没有像java中的overload 链接中的txt文件 下载 请问如何用 JS 实现这个? easyUI中combobox赋值的问题 请问该如何才能看到这个网页源码 谁有新浪样的全屏图片广告代码? 日期比较问题!在线等待! 有没有学习js高级的文档或是好的网站,总感觉用的时候不够用,谢谢 求个js复制剪切板的代码,要求兼容谷歌浏览器
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
无标题页
</title>
<script type="text/javascript">
function playSound(src){
var _s = document.getElementById('snd');
if(src!='' && typeof src!=undefined){
_s.src = src;
}
}
</script>
</head>
<body>
<bgsound id="snd" loop="0" src="">
<input type="button" value="声音" onclick="playSound('1.mp3')" />
</body>
</html>我百度 测试过的。
可以播放声音。