|
| |
|
|
chadmuska2834
Posts: 11 Joined: 11/13/2003 Status: offline
|
Audio In Background - 12/15/2003 21:41:45
Sorry if this has been around here somewhere but i can't find it, what I want to do is have an mp3 audio file play in the background of my website, what's the easiest way to do this ?
< Message edited by chadmuska2834 -- 12/15/2003 11:16:12 PM >
|
|
|
|
SerenityNet
Posts: 1364 Joined: 6/12/2001 From: Allen, TX, USA Status: offline
|
RE: Audio In Background - 12/15/2003 23:35:22
Here is some information on advanced techniques. Here's some general html information. For fun, this site uses sound quite well. I love how the menu mouse overs add elements to the background sound (after you get past or skip the rather lengthy into and into the "services" area). I hope this helps you get started. For more, someone else will have to answer. Andrew PS. Oops! Almost forgot the main one I think you might be looking to find.
< Message edited by SerenityNet -- 12/16/2003 10:42:57 PM >
_____________________________
</Chaos, panic, & disorder - my work here is done.>
|
|
|
|
Giomanach
Posts: 6091 Joined: 11/19/2003 From: England Status: offline
|
RE: Audio In Background - 12/16/2003 3:57:26
Easy way of doing it: Just straight mp3 audio: In the <head> tag insert this: <bgsound src="yoursong.mp3" loop="-1"> That will play the song indefinitly Streaming: Open notepad and enter the location of the mp3 e.g. \Giomanach - Maybe I'm A Fool.mp3 and then save it as a .m3u. In the head tag of the web page enter <bgsound src="back.m3u" loop="-1"> Upload all files to the same web directory. The difference: Just straight audio will download the audio file to the local hard disk and then play it. Streaming will open the audio file from the server and play it through the web. Streaming will allow for instant playback, the other option waits for the file to download before it plays. If you need help with it, Just ask
< Message edited by Giomanach -- 12/16/2003 8:57:57 AM >
_____________________________
|
|
|
|
Acadia
Posts: 172 Joined: 9/28/2003 From: Canada Status: offline
|
RE: Audio In Background - 12/16/2003 10:44:22
quote:
Streaming: Open notepad and enter the location of the mp3 e.g. \Giomanach - Maybe I'm A Fool.mp3 and then save it as a .m3u. In the head tag of the web page enter <bgsound src="back.m3u" loop="-1"> Upload all files to the same web directory. I have a question. I've always used .mdi files because I had no idea you could use others. However the quality of most .mdi files is very poor and sounds "tinny". I would love to do the .mp3 thing where the song plays right away, and continuous. But I'm a bit confused. When you say to enter the location of the .mp3 in notepad, and give the example: \Giomanach - Maybe I'm A Fool.mp3 What exactly is " \ " ? Do I browse to the directory on my hard drive for example: "C:\My Documents\My Music\Symphony\Motzart\file_name.mp3" and enter that into the Notepad file. OR am I putting in the path to the file as it would be found on my website?
|
|
|
|
Giomanach
Posts: 6091 Joined: 11/19/2003 From: England Status: offline
|
RE: Audio In Background - 12/16/2003 11:13:44
The file path is relative to the location of the audio file when published. So if it is on a server somewhere else you would enter: http://www.domain.com/audiofile.mp3 If the file is on the same server you enter the location of it on the server, like so: \audiofille.mp3 the \ basically means it is in the same directory. If it is in higher directory you put ../audio/audiofile.mp3 If it is in a sub-folder you enter \audio\audiofile.mp3 If you need help with it, I'll write an idiots guide to it
_____________________________
|
|
|
|
Acadia
Posts: 172 Joined: 9/28/2003 From: Canada Status: offline
|
RE: Audio In Background - 12/16/2003 16:08:13
I'm sorry, but you lost me with that " \ " stuff. I only know about full and direct paths, not " \ " things, like that.
< Message edited by Acadia -- 12/16/2003 4:18:55 PM >
|
|
|
|
Brunosworld
Posts: 51 Joined: 12/16/2003 Status: offline
|
RE: Audio In Background - 12/16/2003 20:08:46
ok I beleive what he meant was this You want to stream a file on your website and lets say that you file is located in the directory of your web in a folder called audio. In the code you would enter \audio(for the folder name)\songname.mp3. That is if your pages are on a higher directory than your song. If you're pages are stored on a folder that is below the audio directory you would enter the /audio(for the foldername/songname.mp3. I hope that I have explained it better, and if I didn't I apologize to Giomanach.
_____________________________
www.brunosworld.com Web Design and Technology Sollutions for the Future! Hosting Plans Start as low as 10.99 a month.
|
|
|
|
chadmuska2834
Posts: 11 Joined: 11/13/2003 Status: offline
|
RE: Audio In Background - 12/16/2003 20:32:14
hmmm, i'm new at html and i don't know if i'm doing this correctly, here's how i have it: <head <bgsound src="yoursong.mp3" loop="-1">> i changed the name to the song that i want in my web, but it doesn't work, that's how it looks like when i cut and paste that code, is this correct?
_____________________________
www.bars-unlimited.com
|
|
|
|
Acadia
Posts: 172 Joined: 9/28/2003 From: Canada Status: offline
|
RE: Audio In Background - 12/16/2003 22:07:12
I have no clue. That's essentially how I have my code. I think the problem is something to do with that \ and / stuff, which still makes no sense to me. I don't get why you can't just have "yoursong.mp3" for it to work, and instead now have to have that \ or / before it. I only know how to link things with paths, not with \ or / in it. When I link something, I use: http://www.site.com/folder1/folder2/folder3/file.??? Yesterday I finished up a web for someone. When I did it in Front Page 2000, I had all the main staple files for the web design in a folder called "staples". And when I did the script for the mouseover buttons, I used the path "staples/mouseover1.gif" However, the guy wanted the site uploaded to Geocities, which doesn't permit FTP for free sites. So I had to upload all the files individually. Which meant they went into a main path that the upload sends them to. Which meant that my mouseover buttons didn't work anymore because instead of the path being "staples/mouseover1.gif", it was now "mouseover1.gif". I went back to Front Page and erased "staples" from the script and moved all the files to the main folder so that everything was lumped together, and then reuploaded the .htm files. Then the mouseover buttons worked. Geocities allows for sub folders to be created to hold files to keep the web neat....or so they say. However, when I went back and created a folder called "staples", and then moved the files into there, the mouseover buttons didn't work again. So I moved them back to the main directory and have them all lumped in together and the path as mouseover1.gif. Check to see if your songs are in the main folder. If not, move them there. It's the only way I can get things to work :)
< Message edited by Acadia -- 12/16/2003 10:17:43 PM >
|
|
|
|
Giomanach
Posts: 6091 Joined: 11/19/2003 From: England Status: offline
|
RE: Audio In Background - 12/17/2003 3:38:05
I shall try and put this into english lol quote:
If you're pages are stored on a folder that is below the audio directory you would enter the /audio(for the foldername/songname.mp3. Your on the right lines Bruno, but its more like this: If you have the audio file and the m3u file in the same directory you would enter: \audiofile.mp3 the \ signifies that it is the same directory as the audiofile. If the audio file is in a sub folder to the m3u file you enter: subfolder\audiofile.mp3 If it is a folder higher in the directory structure: ../audio/audiofile.mp3 If it is on a totally different web server you enter the web address for it. quote:
<head <bgsound src="yoursong.mp3" loop="-1">> Sorry if I sound like I think I'm superior to you, I'm not, but you are totally wrong here, it wants to look something like this: <html>
<head>
<title>Your Webpage</title>
<bgsound src="audiofile.m3u" loop="-1">
</head> quote:
I have no clue. That's essentially how I have my code. I think the problem is something to do with that \ and / stuff, which still makes no sense to me. I don't get why you can't just have "yoursong.mp3" for it to work, and instead now have to have that \ or / before it. I only know how to link things with paths, not with \ or / in it. Acadia, the linking you are talking about there is correct, but only for hyperlinks and downloads. Within the m3u file, unless the audio file is on a different server, you need to enter it like it is a windows directory structure. The \ just tells the m3u file to look in the same folder that it is in. The audio on there is streamed you may look at the script, and if you need an example of the m3u file I shall post one on here
< Message edited by Giomanach -- 2/2/2004 12:51:52 >
_____________________________
|
|
|
|
chadmuska2834
Posts: 11 Joined: 11/13/2003 Status: offline
|
RE: Audio In Background - 12/17/2003 22:23:14
ok, thanks i got it to work, just 1 more problem.... say i'm on the home page and it's playing, I click on another link called "news" which is another page on the website, the song stops playing. then i add it to the news page. When i'm testing it out, when i go from home page to news, the music starts all over again. anyway to have it continue playing the song from the home page and any other pages?
_____________________________
www.bars-unlimited.com
|
|
|
|
Giomanach
Posts: 6091 Joined: 11/19/2003 From: England Status: offline
|
RE: Audio In Background - 12/18/2003 4:09:14
quote:
ORIGINAL: chadmuska2834 say i'm on the home page and it's playing, I click on another link called "news" which is another page on the website, the song stops playing. then i add it to the news page. When i'm testing it out, when i go from home page to news, the music starts all over again. anyway to have it continue playing the song from the home page and any other pages? The easy way round this is to use frames. Rename your current index.html to home.htm, then create a new index.html and have this as the code: <html> <head><bgsound src="yoursong.mp3" loop="-1"> <title>Your Webpage</title> </head> <frameset cols="0,*" noresize border=0> <frame src="naypage.htm"> <frame src="home.htm"> </frameset> </html> That will have the music playing constantly throughout the whole site, unless they hit refresh The page in bold can be whatever you want it to be, but it must exist
_____________________________
|
|
|
|
Eddiemac
Posts: 1 Joined: 8/9/2007 Status: offline
|
RE: Audio In Background - 8/9/2007 16:05:55
Giomanach I have used the above script on one site (Site B) successfully. I link from Site A to Site B and all is well, ie music in bg. However when I link back to Site A the music keeps on playing. Any way I can stop this ? Thanks
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|