2014-10-08 40 views

回答

0

固定碼 http://jsfiddle.net/f9fsnLcu/4/

First your sound handle was out of scope, so i defined it in window: 
window.audioElement = audioElement = blabla 
Second you were trying to compare object with a number. Don't need to wrap x.left in jquery. 
if (x.left>50)