Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS create custom play|pause button to play a song

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34704
    amyth91
    Participant

    i want to create a custom button that will play song in my website. and also help me , how to i make the button work to play music on click !!!

    #88791
    Mottie
    Member

    Check out this site on how to add HTML5 audio to your site. If you need to support older browsers, check out MediaElement.js.

    #88831
    Mottie
    Member

    Codec support in modern desktop browsers

    Browser          Ogg MP3 WAV
    FireFox 3.6+ x x
    Safari 5+ x x
    Chrome 6 x x
    Opera 10.5+ x x
    IE9 x x
    #88875
    Mottie
    Member

    Ahhh I see… the div you have surrounding the player is also has the id of “player”, you just need to change it to something else. Also the HTML isn’t valid because the audio tag is immediately inside of a UL; just move it before the controls. Here is the modified HTML:

        








Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.