在asp.net(c#)中加入声音
请教各位高手,如果我想根据条件在网页中加入声音,请问怎么做。
用C#代码。
如果用JS在网上查到有如下代码:
<embed src='wlarm.wav' width='0' height='0' id='music' autostart='true'> </embed>
但其是在网页装载时就发出声音了。
请问,如果非要用JS在其aspx文件中怎么写及在cs文件中怎么调用,给下案例代码,谢谢。。。
帮顶下,关注
对了,我还知道一个代码是这样的
<head runat="server">
<title>Untitled Page </title>
<bgsound src="wlarm.wav" loop="-1">
</head>
但这个也是在载入就发出声音,我怎么能对其进行控制。
.....晕 定义个FLASH 背景白色 像素1X1 给FLASH导入音乐 把FLASH丢到网页任意处就OK了
不会搞这个背景音 也用C#吧 汗!!
帮顶,学习
ok,在网上到处找,终于找到答案了。
这样写
aspx文件
<head id="Head1" runat="server">
<embed id = "walarm" width="0" height="0" loop="infinite" src="wlarm.wav" valume="10" autostart="false" hidden="true"> </embed>
<script language="JavaScript" type="text/javascript">
function PlayWalarm()
 
相关问答:
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
<table style="width: 1000px"><tr>
<td style="height: 38px; width: 35px;">
姓名</td>
......