I'm trying to get some audio to play on hover – it's currently working locally, but when I upload to server it's not playing.
Any one able to point me in the write direction?
You can see it live here http://ift.tt/1DvPEvK (hover over musical note icon in top left corner).
Current javascript is –
var audio = $("#bleepbleepsound")[0];
$(".notes").mouseenter(function() {
audio.play();
});
HTML is –
<audio id="bleepbleepsound">
<source src="../audio/TonyTempaBleep1.mp3">
<source src="../audio/TonyTempaBleep1.ogg">
</audio>
Any help would be greatly appreciated!
Aucun commentaire:
Enregistrer un commentaire