bgsound will not work- please advize

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
pbr75
-


Joined: 03 Jan 2004
Posts: 9
Location: Ottawa, Canada

PostPosted: Fri Feb 27, 2004 4:51 am    Post subject: bgsound will not work- please advize Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Feb 27, 2004 9:34 pm    Post subject: Re: bgsound will not work- please advize Reply with quote

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 View user's profile Send private message Send e-mail
pbr75
-


Joined: 03 Jan 2004
Posts: 9
Location: Ottawa, Canada

PostPosted: Mon Mar 01, 2004 12:08 am    Post subject: Reply with quote

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 View user's profile Send private message
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Mon Mar 01, 2004 1:35 pm    Post subject: Reply with quote

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 View user's profile Send private message
mtbiking
-


Joined: 18 Mar 2004
Posts: 66

PostPosted: Thu Apr 08, 2004 9:47 pm    Post subject: Reply with quote

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 View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Thu Apr 08, 2004 10:30 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
goose
-


Joined: 17 Sep 2002
Posts: 608
Location: The Land Of OZ! come here toto!

PostPosted: Sat Apr 10, 2004 8:41 pm    Post subject: Reply with quote

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 View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Sat Apr 10, 2004 9:14 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group