Forums

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

Home Forums JavaScript Can You Spot What I'm Missing?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #158407
    Preeminent
    Participant

    Hey everyone, I am trying to style html5 audio controls and add in a “play” image and a “pause” image.
    The “play” image is default, but then I need the class to change when clicked so that the image changes to the “pause” image.

    The default play image shows up fine, but when clicked, I cannot get the image to change to the pause version.

    Can anyone spot what I’m forgetting with my code?

    I’ve included everything in this codepen: http://codepen.io/anon/pen/sFvLj
    It obviously doesn’t work on there, but at least you can see all my code nice and separated.

    Thanks!

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.