Click to See Complete Forum and Search --> : Inputting music into web page


slater77
10-06-2003, 08:55 AM
Hi
Im new to this web page designing
I do it as a td for tourny pages

Ive tried all the codes i have read about but they dont seem to work
what am i doing wrong?



Also where do i get the music from the net that will actually work on the site
i know u save there html address but i seem to be having problems


By the way not into all the computer speak
so plz simple as possible examples would help

Thx in advance
:D

toicontien
10-06-2003, 11:22 AM
You can use one of three ways:

<embed src="URL_TO_SOUND_FILE.mp3" loop="infinite">

OR:


<object data="URL_TO_SOUND_FILE.mp3" type="MIME-type"
width="number of pixels wide"
height="number of pixels tall"></object>


I haven't done much work with the object tag so you might need to do a little fanagalling to get the code above to work. The link below is a reference for the object tag:

http://www.w3schools.com/tags/tag_object.asp

MIME-type: &mdash; This tells a web browser what kind of file it is downloading and what application it should open the file with. An MP3 file will be something like audio/mp3. You'll have to look up mime-types on a search engine just to be sure.

Where to put the tags:

The <embed> tag can be placed between the <head> and </head> tags. The <object> tag should be placed in between the <body> and </body> tags, in the place on the page where you want a little box to appear that contains basic controls for a media player.

The last way: (and probably the easiest)


<body bgsound="URL_TO_SOUND_FILE.mp3">

slater77
10-06-2003, 11:50 AM
ty ill giv it ago

there was a site which had it all done for u but it crashed out so its bk on my own and im not the brightest with html


thanks anyway ill try and fingers crossed

slater77
10-06-2003, 05:37 PM
<embed src="http://www.geocities.com/wavn4jm/SomewhereOutThere-OurLadyPeace.wav"

loop="true" autostart="true"controls="smallconsole">



k this is wot were using it did work now we just get a dot!!!
any suggestions



were missing our music :O(

ps do u know were to get wave files from to use on it


chears

PeOfEo
10-06-2003, 05:47 PM
I dissaggree with music on websites, I think it is a mark of unprofessionality and I think it is very annoying for those of us who surf with winamp blaring, it interfears. I usually do not go back to sites with music on them. Now for the advice. Use the object tag, the embed tag is out dated.
<object data="URL_TO_SOUND_FILE.mp3" type="MIME-type"></object>
This is like the code posted before. The object tag is just what I would say would be the way to go, but if you are bent on using the embed tag which is out dated (I believe it was depreciated) try messing with your loop, make it a number like 1,2,3 or infinate. Also ditch the controls see what happens.

slater77
10-06-2003, 05:54 PM
trhankyou

ITS FOR TOURNY PAGES AND EVERYONE ASKS FOR THE MUSIC TO BE ON

THANKS ANYWAY WILL TRY IT



:o)

fawn
10-07-2003, 05:18 PM
copy the following code into your code placing it where you want the player to show on the page:

<embed SRC="music/audiofile.wma"
AUTOSTART="false" VOLUME="100"
WIDTH="300" HEIGHT="45"
LOOP="true">

put your audiofile into a folder called music and upload it to the server. This is onlyl good for one sound file at a time, but it works

PeOfEo
10-07-2003, 07:48 PM
fawn, that is esentially what we have posted 3 times now except your has a volume attribute which is most likely invalid or depreciated.