QQ_LastScrollY=0; function QQ_HeartBeat() { var QQ_DiffY; var QQ_Bool=1; if(document.documentElement && document.documentElement.scrollTop) { QQ_DiffY = document.documentElement.scrollTop; } else if(document.body) { QQ_DiffY = document.body.scrollTop; } else { QQ_Bool=0; } if(QQ_Bool==1) { var QQ_Percent=(QQ_DiffY-QQ_LastScrollY)*1; if(QQ_Percent > 0) { QQ_Percent=Math.ceil(QQ_Percent); } else { QQ_Percent=Math.floor(QQ_Percent); } var Obj_SideBox=document.getElementById("QQ_SideBox"); Obj_SideBox.style.top=parseInt(Obj_SideBox.style.top) + QQ_Percent + "px"; QQ_LastScrollY = QQ_LastScrollY + QQ_Percent; if(document.body.clientWidth < 1160) { Obj_SideBox.style.display="none"; } else { Obj_SideBox.style.display="block"; } } } QQ_Code="
"; document.write(QQ_Code); window.setInterval(QQ_HeartBeat,100);