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
  1. #1
    New Coder
    Join Date
    Dec 2007
    Posts
    78
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Music Play Button (Background Music)

    Can someone tell me how to just let the music play while the user browses the website when they click on the play button?

    Right now it works correctly, but when you click the button it opens up in a new tab/window. I want it to not do that, it should just play the music without opening up a new tab/window.

    http://americanwebmakers.com/holiday2

    Any ideas?

    Respectfully,
    Len
    Trust everybody. Just don't trust the Devil inside of them.

  • #2
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To play the music automatically whilst the page is open you could try adding

    <bgsound src="music/deck_the_halls.mp3">

    to the <head> </head> section instead of the current button.

  • #3
    New Coder
    Join Date
    Dec 2007
    Posts
    78
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I would like the music to start when they click the Play Button though.

    Can that be done?
    Trust everybody. Just don't trust the Devil inside of them.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Audio can be done by the audio element or by embedding a Flash player.


  •  

    Posting Permissions

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