МОБУ «Русская школа»

Контакты: 662610 г. Минусинск, ул. Сургуладзе, 4

Архив 24.02.2019

якорь 2

 

var mayak_arrows_my=100;
var mayak_tytime_arrows=5;
var post_mayak_go,stopwatch;
function mayak_lop_arrows(){
stopwatch=setInterval(«mayak_scroll()»,30);
}
function mayakhendr(){
clearInterval(stopwatch);
}
function mayak_scroll(){
post_mayak_go = document.documentElement.scrollTop || document.body.scrollTop;
window.scrollTo(0,++post_mayak_go);
}
function mayak_the_highest_point(){
try{
if(window.pageYOffset!=undefined)
return window.pageYOffset;
return window.document.body.scrollTop;
}catch(err)
{
try{
return window.document.body.scrollTop;
}catch(err2)
{
return 0;
}
}
}
function mayak_scroll_to_top(){
var mayak_copy_zoo =w indow.document.body;
var mayak_brake_by = mayak_the_highest_point();
window.scrollBy(0,-mayak_arrows_my);
var mayak_brake_stop = mayak_the_highest_point();
if(mayak_brake_by>mayak_brake_stop)
setTimeout(«mayak_scroll_to_top()»,mayak_tytime_arrows);
else
document.getElementById(«mayak_down_img»).style.display = «block»;
return false;
}
function mayak_down_arrow(){
var mayak_copy_zoo = window.document.body;
var mayak_brake_by = mayak_the_highest_point();
window.scrollBy(0,mayak_arrows_my);
var mayak_brake_stop = mayak_the_highest_point();
if(mayak_brake_by<mayak_brake_stop)
setTimeout(«mayak_down_arrow()»,mayak_tytime_arrows);
else
document.getElementById(«mayak_down_img»).style.display = «none»;
return false;
}
function slow_mayak_scroll(){
var seo_mayak_body = window.document.body;
var mayak_height = seo_mayak_body.scrollHeight;
var mayak_top = mayak_the_highest_point();
if(mayak_top==0)
document.getElementById(«mayak_up_img»).style.display = «none»;
else
document.getElementById(«mayak_up_img»).style.display = «block»;
return false;
}
setInterval(«slow_mayak_scroll()»,100);
document.write(‘




‘);




#scroll {
bottom: 95px;
float: right;
position: fixed;
right: 30px;
width: 35px;
display:none;
list-style: none;
z-index:999999;
box-sizing: content-box;
}

#scroll i {
color: #ffffff;
font-size: 22px;
line-height: 28px;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

#scroll li a {
background: rgba(0, 0, 0, 0.6) none repeat scroll 0 0;
border-radius: 2px;
color: #fff;
cursor: pointer;
display: block;
font-size: 16px;
margin-top: 6px;
opacity: 0.8;
padding: 3px 5px;
text-align: center;
}
#scroll a:hover {
opacity: 1;
transition: all 0.5s ease 0s;
}