<bgsound src="sample.wav" loop="-1"> OR
<embed src="sample.wav" autostart="false" loop="false">
</embed>
bottomRoundFrame();
OR
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" ValidateRequest="false" %>
<!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 runat="server">
<title>Untitled Page</title>
<script>
function setEmbed(ID, fileName)
{
debugger;
var element = document.getElementById(ID);
//Write the following three lines in one:
element.innerHTML = '<embed src="'+fileName+'.m3u" autostart="0" loop="0" height="45" width="170" type="'+getMimeType()+'"></embed>';
}
function getMimeType()
{
var mimeType = "application/x-mplayer2"; //default
var agt=navigator.userAgent.toLowerCase();
if (navigator.mimeTypes && agt.indexOf("windows")==-1)
{
//non-IE, no-Windows
var plugin=navigator.mimeTypes["audio/mpeg"].enabledPlugin;
if (plugin) mimeType="audio/mpeg" //Mac/Safari & Linux/FFox
}//end no-Windows
return mimeType
}
</script>
</head>
<body onload="setEmbed('sample', 'http://www.yourdomain.com/music/sample.mp3')">
<form runat="server">
<span id="sample">Finding plugin...</span>
</form>
</body>
</html>
1) Very good article about how to deal with music using java script. http://www.phon.ucl.ac.uk/home/mark/audio/play.htm
2) http://www.scriptwell.net/howtoplaysound.htm