diff --git a/securimage.js b/securimage.js index 8b16024..ab552a8 100644 --- a/securimage.js +++ b/securimage.js @@ -107,6 +107,7 @@ SecurimageAudio.prototype.init = function() { this.playButtonImage = el; } else if (el.className.indexOf('loading_image') >= 0) { this.loadingImage = el; + this.loadingImage.style.display = 'none'; } } } @@ -192,7 +193,7 @@ SecurimageAudio.prototype.replaceElements = function() { parent.removeChild(this.audioElement); var newAudioEl = document.createElement('audio'); - newAudioEl.setAttribute('style', 'display: none;'); + newAudioEl.style.display = 'none'; newAudioEl.setAttribute('preload', 'false'); newAudioEl.setAttribute('id', this.audioElement.id);