私はネット全体を見てきましたが、それでもこれを正しく行うことができます。私が使用しているjqueryコードは次のとおりです。
$(document).ready(function(){
// Slide top and bottom bars away in all screens except the lobby
$("#main_content").ajaxStop(function(){
if($("#content_text").length){
}
else{
$("#top").slideUp(2000);
$("#btm").slideUp(2000);
}
});
// Slide bars back in when the mouse is moved and then away again after 2 seconds
var fadeout = null;
$("html").mousemove(function() {
$("#top").slideDown(2000);
$("#btm").slideDown(2000);
if (fadeout != null) {
clearTimeout(fadeout);
}
fadeout = setTimeout(3000, hide_playerlist);
alert("call back fired");
});
function hide_playlist() {
$("#top").slideUp(2000);
$("#btm").slideUp(2000);
}
});
問題は、ミューズの動きが敏感すぎて、ピクセルが動くたびに発火することです。これを行う方法はありますか?