Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: embed music

  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    embed music

    I would like to <embed src="xxxxxxxxx.mp3"> into my HTML without having a music control box open up on my page. Can this be done?
    thanks

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Location
    Port Huron, MI, U.S.A.
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <head>
    <bgsound id="music" src="~~~+X+DS+.mp3">
    </head>
    Oh, was I supposed to put something here? ........

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    embed music

    Thank you for helping me. That works just fine.

  • #4
    Regular Coder
    Join Date
    Jul 2004
    Location
    engoku no anime
    Posts
    354
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Or if you are looking for a cross-browser method (and also wish to allow users to turn off the music at will if they don't like it), try this:

    Code:
    <object data="music.wav">
      Error text.
    </object>


  •  

    Posting Permissions

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