dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: HOw do I add music to an html site?

  1. #1
    banned by dp
    Join Date
    Jun 2002
    Posts
    245

    HOw do I add music to an html site?

    I want to have a music track play in the background of an html site. But I'm a flash designer and have never done this. HOw do I do it? Could you explain it step by step for me?

    Thanks.

  2. #2
    Musician/Sound Engineer
    Join Date
    Dec 2003
    Location
    AZ
    Posts
    252
    Although knowone recommends doing this, here is the html code

    EMBED SRC="yoursong.mp3" AUTOSTART=TRUE LOOP=TRUE width=0 height=0">
    </EMBED>

    ****Add a '<' before the first EMBED tag.******
    Put this code somewhere within the <head>.....</head> of the page.

    Where "yoursong.mp3" = whatever your sound file is (.mp3)(.wav)(.mid).
    Autostart True means it will automatically play.
    Loop True means it will continue to loop, over and over.

    Embeding a sound file into your page is not recommended for 2 reasons.
    1) If the user doesn't want to hear it, they have no choice...except to turn off the speakers.
    2) It slows the loading of the page down dramatically. Chances are that the page will not be viewable until the entire sound file has been loaded. This is a pain!!

    Consider these things.

    Mike
    Last edited by launchpad67a; 04-02-2004 at 03:13 PM.

  3. #3
    banned by dp
    Join Date
    Jun 2002
    Posts
    245
    Yes, but, how do I have it so that the main page loads and THEN the sound file loads in.???

  4. #4
    Musician/Sound Engineer
    Join Date
    Dec 2003
    Location
    AZ
    Posts
    252
    Hmmmm, not sure about that. I'll look into it. Mabey someone else can chime in here.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center