www.webdeveloper.com
Results 1 to 8 of 8

Thread: Inputting music into web page

  1. #1
    Join Date
    Oct 2003
    Posts
    5

    Angry Inputting music into web page

    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

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773
    You can use one of three ways:

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

    OR:

    Code:
    <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)

    Code:
    <body bgsound="URL_TO_SOUND_FILE.mp3">
    Last edited by toicontien; 10-06-2003 at 11:28 AM.

  3. #3
    Join Date
    Oct 2003
    Posts
    5
    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

  4. #4
    Join Date
    Oct 2003
    Posts
    5
    <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

  5. #5
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    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.

  6. #6
    Join Date
    Oct 2003
    Posts
    5
    trhankyou

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

    THANKS ANYWAY WILL TRY IT



    )

  7. #7
    Join Date
    Jun 2003
    Location
    va
    Posts
    6
    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

  8. #8
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    fawn, that is esentially what we have posted 3 times now except your has a volume attribute which is most likely invalid or depreciated.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles