名稱:VR全景分類:動畫片吉林市網(wǎng)絡吉林市互聯(lián)網(wǎng)學校依托于吉林市智慧教育云平臺,結(jié)合互聯(lián)網(wǎng)+教育的科學理念,將傳統(tǒng)教育與現(xiàn)代技術(shù)有機融合,開展線上線下同步授課學習的實體學校。學校
function myEvent(obj,ev,fn){
if(obj.attachEvent){
obj.attachEvent('on'+ev,fn);
}else{
obj.addEventListener(ev,fn,false);
}
}
myEvent(window,'load',function(){
var oRTT=document.getElementById('rtt');
var pH=document.documentElement.clientHeight;
var timer=null;
var scrollTop;
window.onscroll=function(){
scrollTop=document.documentElement.scrollTop||document.body.scrollTop;
return scrollTop;
};
oRTT.onclick=function(){
clearInterval(timer);
timer=setInterval(function(){
var now=scrollTop;
var speed=(0-now)/5;
speed=speed>0?Math.ceil(speed):Math.floor(speed);
if(scrollTop==0){
clearInterval(timer);
}
document.documentElement.scrollTop=scrollTop+speed;
document.body.scrollTop=scrollTop+speed;
}, 30);
}
});