embed播放录音的问题
一个在线播放声音的功能,我单独放一个声音是可以的,可是如果把数据库里的声音文件在一个列表中显示出来,然后随便选哪个播放就不好用,请问是什么原因?<script language="JavaScript">
function MM_controlSound(sndAction,sndObj)
{
if(eval(sndObj) != null)
{
if(navigator.appName=='Netscape')
{
eval( sndObj+ ( (sndAction=='stop') ? '.stop()' : '.play(false)' ) );
}
else if(eval(sndObj+".FileName"))
{
eval(sndObj+((sndAction=='stop')?'.stop()':'.play()'));
}
}
}
</script>
<embed name='MM_controlSound1' src="<%=url%>" loop=false autostart=false width=10 height=10></embed>
<a href="#" onMouseOver="MM_controlSound('play','document.MM_controlSound1')"
onMouseOut="MM_controlSound('stop','document.MM_controlSound1')"
> 鼠标放上播放</a>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" >
<Columns>
<asp:TemplateField HeaderText="图标">
<ItemTemplate>
<embed name='MM_controlSound3' src="<%=testtel%>" loop=false autostart=false width=10 height=10></embed>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="播放" SortExpression="businessCompany">
<ItemStyle Wrap="False" Width="150px" />
<ItemTemplate>
<a href="#" onMouseOver="MM_controlSound('play','document.MM_controlSound3')"
onMouseOut="MM_controlSound('stop','document.MM_controlSound3')"
> 当鼠标移到这儿时会播放声音</a>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="录音文件" SortExpression="Company">
<ItemStyle Wrap="False" Width="150px" />
<ItemTemplate>
<asp:Label ID="lblmobiletel" Width="150px" runat="server" Text='<%# Bind("testtel") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
/*---------------------后台CS------------------------------*/
public string url = "";
DbCommand db_src = db.GetSqlStringCommand("select testtel,tid from test");
db.ExecuteNonQuery(db_src);
url = "upfiles/"+db.ExecuteDataSet(db_src).Tables[0].Rows[0][0].ToString();
GridView1.DataSource = db.ExecuteDataSet(db_src).Tables[0];
GridView1.DataBind();