audio - jquery sound not playing -
audio - jquery sound not playing -
i want sound play when div has x position value of more 50. command div arrow keys.
http://jsfiddle.net/vvccvvcc/f9fsnlcu/3/
i'm guessing audioelement.play() isn't working.
neither sound nor alert pop (function playsound)
fixed code below http://jsfiddle.net/f9fsnlcu/4/
first sound handle out of scope, defined in window: window.audioelement = audioelement = blabla sec trying compare object number. don't need wrap x.left in jquery. if (x.left>50) jquery audio position
Comments
Post a Comment