Results 1 to 7 of 7

Thread: Music files on a website

  1. #1
    Join Date
    Dec 2005
    Posts
    59

    Default Music files on a website

    Im trying to have links on a site that, when clicked, play files. I see that you can do it as a normal <a href...> but im having a hard time getting full songs to play. I assume its something to do with the size/format of the file. For instance, i esaily linked and played a tiny .wav file of a 3-sec audio clip. Is there a particular format/software that strips .mp3 files down to something usable that can be linked on a website?

  2. #2
    Join Date
    Aug 2004
    Location
    USA
    Posts
    996

    Default

    Nope. Just upload the song and make a link to have it able to download.
    Or you can have it play on your website.

    Link to file:
    Code:
    File name
    To have it play on your website:
    Code:
    <embed src="music/music.mp3" loop="1"></embed>

  3. #3
    Join Date
    Dec 2005
    Posts
    59

    Default

    loop=1 is something i neglected. ill try that. didnt think it was necessary as i assumed there would be a default value. ill let you know :)

    thanks.

  4. #4
    Join Date
    Dec 2005
    Posts
    59

    Default

    didnt work for me. when i click on the link, the file looks like its going to load and then it freezes.

  5. #5
    Join Date
    Jan 2006
    Posts
    21

    Default heh

    its very cool!


  6. #6
    Join Date
    Jan 2006
    Posts
    5

    Default

    sweet thank you this helps alot for my music idea thing, but will it work to play in the background?

  7. #7
    Join Date
    Jan 2006
    Location
    Nebraska, United Stats of America
    Posts
    199

    Default

    If you want it to play on the background you can use this code.
    Code:
    <bgsound src="music/music.mp3" loop="-1">
    -1 Means will never stop playing.
    Code:
    <embed src="music/music.mp3" loop="1"></embed>
    1 means will play 1 time and will need to push the play button to play again.
    Code:
    File Name
    will open a new window to download the file.

Bookmarks

Posting Permissions

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