Need simplificated Function for onclick button sounds

This is my first question here sorry if I make any mistake.

I want to know how to simplificate an action(function), I have a drumkit with differents buttons with differents sounds, Im using this code: FIDDLE


function play() {
var audio = document.getElementById('audio1');
if (audio.paused) {;
    audio.currentTime = 0

How can I make just one function and play different sounds in every button?

89 thoughts on “Need simplificated Function for onclick button sounds”

  1. I get pleasure from, result in I discovered just what I was looking for.
    You have ended my 4 day lengthy hunt! God Bless you man. Have a nice
    day. Bye

  2. My developer is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the costs. But he’s tryiong
    none the less. I’ve been using WordPress on a variety of websites for about a year and am concerned about switching to another platform.
    I have heard very good things about
    Is there a way I can transfer all my wordpress content into it?
    Any help would be greatly appreciated!

  3. Wow that was strange. I just wrote an really long comment but after I clicked submit my
    comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyhow,
    just wanted to say superb blog!

  4. What i don’t realize is if truth be told how you are not actually much more smartly-preferred
    than you might be now. You are very intelligent.
    You realize therefore considerably relating to this matter, produced me for my part consider it from a lot of
    varied angles. Its like men and women don’t seem to be interested unless it is
    something to do with Woman gaga! Your individual stuffs outstanding.
    Always care for it up!

    My site – Paramore Wrinkle Freezing Moisturizer Reviews

  5. Can I simply just say what a relief to uncover somebody who actually understands what they are
    talking about on the internet. You certainly know how to bring
    a problem to light and make it important.
    A lot more people need to check this out and understand this
    side of the story. I was surprised you are not more popular given that you certainly possess the gift.

    Here is my homepage True Keto 1800 Review

  6. I like the helpful information you provide in your articles.
    I will bookmark your blog and check again here frequently.
    I am quite certain I’ll learn plenty of new stuff right here!
    Good luck for the next!

    Feel free to visit my webpage: Delia

  7. You’re so awesome! I don’t think I’ve truly read through
    anything like this before. So good to discover someone with a few genuine thoughts on this issue.

    Seriously.. thanks for starting this up. This site is one thing
    that is needed on the web, someone with a little originality!

    my homepage

  8. An intriguing discussion is definitely worth comment.
    There’s no doubt that that you ought to write more on this subject matter,
    it may not be a taboo subject but typically people don’t
    speak about these subjects. To the next! Kind regards!!

    my web page … Amellia Cream

  9. I’m just writing to let you understand what a wonderful
    encounter my daughter encountered studying the blog.
    She figured out some things, with the inclusion of how it is
    like to possess a wonderful giving style to have the mediocre ones without difficulty fully understand specified tortuous subject areas.

    You actually exceeded our own expectations. Thank you for producing these powerful, healthy,
    edifying and fun guidance on the topic to Gloria.

    Also visit my homepage

  10. Hi! I could have sworn I’ve visited this site before but after going through some
    of the articles I realized it’s new to me. Anyhow, I’m certainly pleased
    I found it and I’ll be bookmarking it and checking
    back often!

    Also visit my website

  11. Pingback: viagra cheap
  12. Pingback: sildenafil generic
  13. Pingback: buy viagra
  14. Pingback: purchase viagra
  15. Pingback: cialis en ligne
  16. Pingback: buy sildenafil

Leave a Comment