Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-29-2002, 07:10 AM   PM User | #1
fearlesslife
New to the CF scene

 
Join Date: Jun 2002
Location: NYC
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
fearlesslife is an unknown quantity at this point
how do u put a song from ur comp on ur site?????

how do u put a song from ur comp on ur site?????
can u?


if it can or someone knows....can u tell me plz...or give me the codes for it.....PLZ.......THX
fearlesslife is offline   Reply With Quote
Old 06-29-2002, 11:05 AM   PM User | #2
Sp00kY
New Coder

 
Join Date: Jun 2002
Location: England
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Sp00kY is an unknown quantity at this point
Thumbs up

One way to do it is...

<BGSound Src="song.ext" Loop="-1">

Obviously replacing 'song.ext' with your file and extension.

That particular loop value makes the song loop forever, I'm not sure what the other values do, I suppose '0' would simply be no loop... but just play with it to get what you want.

If instead you'd like the viewer to be able to play/stop or whatever the sound themselves, then...

<embed src="song.ext" autoplay="false" controller="true">

Would be your answer. Hope that helps.

Peace \/
__________________
`Sp00kY`
Sp00kY is offline   Reply With Quote
Old 06-29-2002, 05:52 PM   PM User | #3
fearlesslife
New to the CF scene

 
Join Date: Jun 2002
Location: NYC
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
fearlesslife is an unknown quantity at this point
thx alot pal.....hmm...how do u keep repeat the song over and over again?
fearlesslife is offline   Reply With Quote
Old 06-29-2002, 06:26 PM   PM User | #4
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
in
loop="-1"
the -1 means forever
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 06-30-2002, 12:25 AM   PM User | #5
fearlesslife
New to the CF scene

 
Join Date: Jun 2002
Location: NYC
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
fearlesslife is an unknown quantity at this point
umm.....i dont have the song wit .ext....and i wanna put a mp3 song on the site....can u guys tell me how?
fearlesslife is offline   Reply With Quote
Old 06-30-2002, 01:13 AM   PM User | #6
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
As sp00ky said:

<BGSound Src="song.ext" Loop="-1">


replace the song.ext to song.mp3
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 06-30-2002, 06:51 AM   PM User | #7
fearlesslife
New to the CF scene

 
Join Date: Jun 2002
Location: NYC
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
fearlesslife is an unknown quantity at this point
thx nightfire....one more thing....for the song.mp3...wat r u gonna put for it...cuz i dont really get it
fearlesslife is offline   Reply With Quote
Old 06-30-2002, 01:09 PM   PM User | #8
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
replace it with the name of the mp3. So if your mp3 is called nursery rhymes volume 1.mp3, then change song.ext to

<BGSound Src="nursery rhymes volume 1.mp3" Loop="-1">
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 06-30-2002, 05:21 PM   PM User | #9
fearlesslife
New to the CF scene

 
Join Date: Jun 2002
Location: NYC
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
fearlesslife is an unknown quantity at this point
thx
fearlesslife is offline   Reply With Quote
Old 06-30-2002, 08:44 PM   PM User | #10
biggyfries
New Coder

 
Join Date: Jun 2002
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
biggyfries is an unknown quantity at this point
Question:

Will activating a mp3 file open up a mp3 player, or will it just play?

Thought about doing it with an mp3, but figured i had to create a flash file to get the mp3 running without having winamp/WMP opening.

Thanks!!
__________________
dan
biggyfries is offline   Reply With Quote
Old 07-01-2002, 02:45 AM   PM User | #11
fearlesslife
New to the CF scene

 
Join Date: Jun 2002
Location: NYC
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
fearlesslife is an unknown quantity at this point
hmmm.....i cant seems to play the song from the computer...any suggestions?
fearlesslife is offline   Reply With Quote
Old 07-01-2002, 09:58 AM   PM User | #12
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
fearlesslife,

where is your file located; on your own computer, or somewhere on a web server? You can't access a music file on your computer from a web site unless it is accessible as a server.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 07-01-2002, 07:36 PM   PM User | #13
fearlesslife
New to the CF scene

 
Join Date: Jun 2002
Location: NYC
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
fearlesslife is an unknown quantity at this point
on my computer....i want to put a song from my computer on the site....i heard u have to upload to song first then to the server?.

HELP!
fearlesslife is offline   Reply With Quote
Old 07-01-2002, 08:14 PM   PM User | #14
boxer_1
Regular Coder

 
Join Date: May 2002
Location: Maine, USA
Posts: 574
Thanks: 0
Thanked 0 Times in 0 Posts
boxer_1 is an unknown quantity at this point
Quote:
Originally posted by fearlesslife
on my computer....i want to put a song from my computer on the site....i heard u have to upload to song first then to the server?.

HELP!
Yes, you must upload the sound file to your hosting space first. Who are you using for a host? I assume you have upoaded pages to your hosting space already? You would upload the sound file in much the same way. To keep it simple, upload the sound file to the same directory as your pages are located in. Then when you specify the path to the sound file like so:

<BGSound src="nursery rhymes volume 1.mp3"......>

The path (src) will be correct with just the name and extension .
__________________
boxer_1
CodingForums Moderator
"How did a fool and his money get together in the first place?"
boxer_1 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:18 AM.


Advertisement
Log in to turn off these ads.