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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -