View Full Version : Audio playing
sabrina
02-27-2002, 10:26 PM
How do i insert an audio file to my html ? Im using dreamweaver. The audio is suppose to be playing continuously while the pages are being visited. I do not want to use flash. Please help.
The audio format is either mp3 or wav.
Thank you.
montroze
02-27-2002, 11:54 PM
You can try this script,
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var MSIE=navigator.userAgent.indexOf("MSIE");
var NETS=navigator.userAgent.indexOf("Netscape");
var OPER=navigator.userAgent.indexOf("Opera");
if((MSIE>-1) || (OPER>-1)) {
document.write("<BGSOUND SRC=YOURSONG.mp3 LOOP=INFINITE>");
} else {
document.write("<EMBED SRC=YOURSONG.mp3 AUTOSTART=TRUE ");
document.write("HIDDEN=true VOLUME=100 LOOP=TRUE>");
}
// End -->
</SCRIPT>
sabrina
02-28-2002, 01:11 AM
hey montroze,
it worked. thanx a million. u have no idea wat u have just done for me. thanx again.
sabrina
spaz109ca
03-05-2002, 06:54 PM
There's a couple of easier ways...
The easiest:
Paste this in your <head> tage:
<bgsound src="yoursong.mp3" loop="infinite">
The 2nd easiest:
Paste this anywhere on your page:
<embed src="yoursong.mp3" width="250" height="16">
...Or you could put someone elses music on your page:
www.geocities.com/heyravewithme/flash/songbottom.html
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.