我想說如果運動是向下運動是那麼一定長度使圖像變暗的不透明度,但與此代碼我得到一個語法錯誤:if語句懸停語法錯誤消息
function touchMove(event) {
event.preventDefault();
if (event.touches.length == 1) && (swipeDirection == 'down') && (swipeLength >= 90) && (swipeLength <= 120){
curX = event.touches[0].pageX;
curY = event.touches[0].pageY;
('1.png').hover(function() {
$(this).stop().animate({ "opacity": .5 });
}}
// OPTIONAL ACTION: draw the results to the page
updateReadout(2)
} else {
touchCancel(event);
}
}
謝謝。我非常欣賞這一努力。 – dmccallum 2011-04-28 16:17:03