}
if (e.wheelDelta < 0) { //当滑轮向下滚动时
$(".w_wbox").css("position","fixed");
$(".w_wbox").css("top","-155px");
$(".w_wbox").css("left","-960px");
$(".w_wbox").css("width","1920px ");
$(".w_wbox").css("margin-left","50%");
}
} else if (e.detail) { //Firefox滑轮事件
if (e.detail< 0) { //当滑轮向上滚动时
$(".w_wbox").css("position","fixed !important");
$(".w_wbox").css("top","0px");
$(".w_wbox").css("left","-960px");
$(".w_wbox").css("width","1920px");
$(".w_wbox").css("margin-left","50%");
$(".w_wbox").css("transition","all 0.5s");
}
if (e.detail> 0) { //当滑轮向下滚动时
$(".w_wbox").css("position","fixed");
$(".w_wbox").css("top","-155px");
$(".w_wbox").css("left","-960px");
$(".w_wbox").css("width","1920px ");
$(".w_wbox").css("margin-left","50%");
}
}
}
//给页面绑定滑轮滚动事件
if (document.addEventListener) {//firefox
document.addEventListener('DOMMouseScroll', scrollFunc, false);
}
//滚动滑轮触发scrollFunc方法 //ie 谷歌
window.onmousewheel = document.onmousewheel = scrollFunc;
搜索
分享
-
屋脊齿钻头 GS1666XA
View more
上一页
1
下一页