User:Ochristi/AudioPlayer

 window.onload = function { player = document.getElementById('somethingunique'); controls = document.getElementById('playercontrols'); controls.onclick = function { if (player.playing) { player.pause; player.playing = false; controls.innerHTML = "play"; } else { player.play; player.playing = true; controls.innerHTML = "pause"; }	}; }; play 