//置顶
document.getElementById("pro-view-8").onclick = function(){document.body.scrollIntoView();}
window.onscroll = function(){
if(document.body.scrollTop > 30){
if($("#pro-view-8")[0].style.display === "block") {return;}
$("#pro-view-8").show();
}else{
if($("#pro-view-8")[0].style.display === "none") {return;}
$("#pro-view-8").hide();
}
}
时间: 2024-09-30 00:15:49