0
我使用這個腳本,使一個項目跳走,當鼠標靠攏:鼠標懸停效果推單元分離的觸摸屏上
$("button").mouseover(function(){
$(this).css({
left:(Math.random()*80)+"%",
top:(Math.random()*80)+"%",
});
});
我想知道是否有辦法來複制這個了用於觸摸屏?
也在該腳本在圖像周圍追逐鼠標:
$(document).mousemove(function(e){
$("#image").css({left:e.pageX, top:e.pageY});
});