function sound(src) {
  this.sound = document.createElement("audio");
  this.sound.src = src;
  this.sound.setAttribute("preload", "auto");
  this.sound.setAttribute("controls", "none");
  this.sound.style.display = "none";
  document.body.appendChild(this.sound);
  this.play = function(){
    this.sound.play();
  }
  this.sound.loop = false;    
  this.stop = function(){
    this.sound.pause();
  }
}
//Creates new sound object and inserts it into the html
Creates new sound object and inserts it into the html
Creates new sound object and inserts it into the html
function sound(src) {
  this.sound = document.createElement("audio");
  this.sound.src = src;
  this.sound.setAttribute("preload", "auto");
  this.sound.setAttribute("controls", "none");
  this.sound.style.display = "none";
  document.body.appendChild(this.sound);
  this.play = function(){
    this.sound.play();
  }
  this.sound.loop = false;    
  this.stop = function(){
    this.sound.pause();
  }
}
function sound ( src ) { this . sound = document . createElement ( "audio" ) ; this . sound . src = src ; this . sound . setAttribute ( "preload" , "auto" ) ; this . sound . setAttribute ( "controls" , "none" ) ; this . sound . style . display = "none" ; document . body . appendChild ( this . sound ) ; this . play = function ( ) { this . sound . play ( ) ; } this . sound . loop = false ; this . stop = function ( ) { this . sound . pause ( ) ; } }
Creates new sound object and inserts it into the html
Creates new sound object and inserts it into the html