View Full Version : How can I add music to my homepage in Google Page Creator?
Sir Big Jugs
03-23-06, 12:21 PM
So? How can I add background music to my homepage in Google Page Creator? Is it possible? All help appreciated.
Not sure how'd you do it in Google's creator, I never tried it. I am using a plain text editor to write my html. Here are the correct tags to fill in
Example 1:
<embed src="yoursound.mid" hidden="true" autostart="true">
<noembed><bgsound src="yoursound.mid"></noembed>
Example 2:
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="yoursound.mp3">
</object>
Example 3:
<object type="audio/x-mpeg" data="yoursound.mp3"></object>
Learn HTML here (http://www.w3schools.com/media/media_browsersounds.asp)
you need the monkey....http://webmonkey.com/
Jesper is right
You require only your browser to make the change. Just open the page you created and click on View and on Source in IE.
IN the notepad type
<embed src="name.mp3">
and save the file. Embed src stands for embedded source.
Refresh IE and press Enter selecting address bar, you can hear the music or song.
The same code can be used to play movie files. only thing is that the name and the type of the file (mp3, mpeg, mpg) etc must be correctly given.
For your first question:
The code will work with IE because it plays the file using WMPlayer.
In Mozilla or firefox it requires the quicktime plugin to play the file.
When you open the file for the first time, I think it asks you
1. Download to disk
2. Open using default application etc
If you choose the default application option it will open either winamp or WMPlayer and plays the file.
Check this out:
http://www.webmasterworld.com/forum21/11810.htm
For your second question there are two options.
It will not be good for you to break the file into many files and play the different files.
1. Give an option for the user to decide whether he want to listen it downright.
2. The user is ready to download the compressed file (compressed using winzip). The user requires winzip.
Jesper is right
You require only your browser to make the change. Just open the page you created and click on View and on Source in IE.
IN the notepad type
<embed src="name.mp3">
and save the file. Embed src stands for embedded source.
Refresh IE and press Enter selecting address bar, you can hear the music or song.
The same code can be used to play movie files. only thing is that the name and the type of the file (mp3, mpeg, mpg) etc must be correctly given.
Dead wrong <embed> doesnt work properly with MSIE, hence my 1st example ;)
You should not use wav or mp3 files for bgsound, cause the files are usually too huge and uses a lot of bandwidth to stream.
Instead you should make alink to file so people can download it if they wants to listen to it.
Imagine a visitor using a 56k modem has to stream 3MB it would take forever ;)
cut the file down to 8-9 secs and have it loop instead or find a midi *.mid file and use that for sound.
Dont forget to add an option to turn off sounds cause many people finds it annoying that websites plays music.
As said before it doesnt work in FF unless you have the correct plugins, see https://pfs.mozilla.org/plugins/?application=firefox and http://plugindoc.mozdev.org/ for details.
MSIE doesnt use WinAMP or Media Player to play bgsound it is a feature built'in IE, and <bgsound> is a MSIE only feature.
Oh and PS... IE nor FF asks you what you want to do with the file cause it is NOT a link but a part of the webdesign (core / code)
Etienne
03-25-06, 08:42 AM
I'll quote an old cyber friend of mine, on web designing :
"Unless you're a 12 year old girl making a page about Pretty Ponies and Wicca, skip the ****ing music already!"
Really. I've never been on a web page where I didn't turn off the music. They're usually annoying as heck, come over what you're already playing, or slow everything incredibly. Think about it seriously before you act.
Dead wrong <embed> doesnt work properly with MSIE, hence my 1st example
If MSIE is Microsoft Internet Explorer then embed code works fine with it. I have checked it before typing here. It plays using the Windows Media Player. The windows media player is embedded in the webpage and you can play mp3's or any files that WMP can play.
MSIE doesnt use WinAMP or Media Player to play
You are confusing me a lot. I think the MicroSoft Internet Explorer will be unable to play the music file, if Media player is uninstalled. So to play the music Internet Explorer requires Media player.
Regarding Winamp I was mentioning about using Mozilla. In Mozilla when I tried to play the files for the first time it asked me the option to select to play using defeault application or to save to disk. Since My default application is Winamp it played the file using winamp. From the next time onwards it asked me to get the plugin.
"Unless you're a 12 year old girl making a page about Pretty Ponies and Wicca, skip the ****ing music already!" Amen
MicroSoft Internet Explorer will be unable to play the music file, if Media player is uninstalled. So to play the music Internet Explorer requires Media player.I find that hard to believe.
...
oh and
Right up front, I should point out that the EMBED command is not "standard" HTML. That means it is not one of the commands the W3 has proclaimed is good for all browsers. EMBED is a command that is understood by the Netscape Navigator browser alone.
If you use EMBED, you should always follow it with the BGSOUND="----" command, placing the sound file name where I have the "----". That's Internet Explorer's method of playing a background sound.
Use both. Then all browsers will be able to play the sound.
MicroSoft Internet Explorer will be unable to play the music file, if Media player is uninstalled. So to play the music Internet Explorer requires Media player.
Try it yourself
Uninstall WMP, you get the older version of WMP. Remove this one also. Now open the webpage and listen for any Music
After the trial back to WMP installation :lol:
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.