View previous topic :: View next topic |
Author |
Message |
pbr75 -
Joined: 03 Jan 2004 Posts: 9 Location: Ottawa, Canada
|
Posted: Fri Feb 27, 2004 4:51 am Post subject: bgsound will not work- please advize |
|
|
I am trying to hold it together here. I have read all the postings regarding the use of .m3u to play an mp3 file in the backgroung. I have entered the code physsically into my page script through dreamweaver (my choice of editor), I have place the relevent mp3 file in the htdocs directory and even though I have tried many different things, I can't seem to get my choice of tune to play upon loading...... please, please sort this out for me? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Feb 27, 2004 9:34 pm Post subject: Re: bgsound will not work- please advize |
|
|
pbr75;
To add a background sound to your page, you must have this line in the HEAD of your HTML file:
Code: | <HEAD>
<bgsound src="/path/to/song.mp3" loop="3">
</HEAD> |
/path/to/song.mp3 should be replaced by the virtual path of your MP3 in the web site, that means that you should have the mp3 played or downloaded if you browse http://yoursite/path/to/song.mp3 (so if you put the mp3 file in the htdocs, its virtual path is /song.mp3). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
pbr75 -
Joined: 03 Jan 2004 Posts: 9 Location: Ottawa, Canada
|
Posted: Mon Mar 01, 2004 12:08 am Post subject: |
|
|
Hi and thanks for the reply....
This is how it looks, but it still doesn't work....
Please advise
<html>
<head>
<title>paulsite TF</title>
<bgsound src="/dark.mp3" loop="3">
<bgsound src="http://www.paulsite.ca/thedarkness_Ibelieve.mp3">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Mon Mar 01, 2004 1:35 pm Post subject: |
|
|
pbr75 wrote: | <bgsound src="/dark.mp3" loop="3">
<bgsound src="http://www.paulsite.ca/thedarkness_Ibelieve.mp3"> | At the moment you are asking the computer to play 2 different background sounds.
Try removing one so it looks like this:
<html>
<head>
<title>paulsite TF</title>
<bgsound src="http://www.paulsite.ca/thedarkness_Ibelieve.mp3" loop=”3”>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
the bit in bold is the part I’ve updated _________________ Olly |
|
Back to top |
|
 |
mtbiking -
Joined: 18 Mar 2004 Posts: 66
|
Posted: Thu Apr 08, 2004 9:47 pm Post subject: |
|
|
heres a better way
same sound in background
<embed src="/dark.mp3" loop=3 hidden=true autostart=true> </embed>
different sound each time the page load
sound = new Array()
sound[0]="/dark.mp3"
sound[1]="http://www.paulsite.ca/thedarkness_Ibelieve.mp3"
var Number = Math.round(1* Math.random());
var Themp3 = sound[Number]
document.write("<embed src=" +Themp3+ " loop=3hidden=true autostart=true> </EMBED>") |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Thu Apr 08, 2004 10:30 pm Post subject: |
|
|
You accidentally forgot to put a space between the "loop" and "hidden."
Code: | sound = new Array()
sound[0]="/dark.mp3"
sound[1]="http://www.paulsite.ca/thedarkness_Ibelieve.mp3"
var Number = Math.round(1* Math.random());
var Themp3 = sound[Number]
document.write("<embed src=" +Themp3+ " loop=3 hidden=true autostart=true> </EMBED>") |
There we go. (I just posted saying this because anyone who were to copy and paste the code would get an error, and might not know why). _________________ Bienvenidos! |
|
Back to top |
 |
 |
goose -
Joined: 17 Sep 2002 Posts: 608 Location: The Land Of OZ! come here toto!
|
Posted: Sat Apr 10, 2004 8:41 pm Post subject: |
|
|
hmmm i might test that cheers.
nothing like whistling while you work. :wink: _________________ living in an armish paradise.....no gates here!
mawuahahaha :) |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Sat Apr 10, 2004 9:14 pm Post subject: |
|
|
Well tell me if it works; although I am not one to play a background sound on my webpage (it would not only drive visitors crazy; it would drive me crazy!) _________________ Bienvenidos! |
|
Back to top |
 |
 |
|