CodePen

HTML

            
              
            
          
!

CSS

            
              
            
          
!

JavaScript

            
              if (window.device) // if phonegap is used: 
{
    if (phoneCheck.android) // android
        this.mediaobj = new Media("/android_asset/www/audiomp3/" + id + ".mp3", this.mediaCallSuccess, this.mediaCallError);
} else
    this.mediaobj = document.getElementById(id);
            
          
!
999px
Loading ..................