Копировать код <script> function t270_scroll2(hash, offset, speed) { var $root = $('html, body'); var target = ""; if (speed === undefined) { speed = 500 } try { target = $(hash) } catch (event) { console.log("Exception t270: " + event.message); return !0 } if (target.length === 0) { target = $('a[name="' + hash.substr(1) + '"]'); if (target.length === 0) { return !0 } } $root.animate({ scrollTop: target.offset().top - offset }, speed, function() { if (history.pushState) { } else { } }); return !0 } var refreshIntervalt270 = setInterval(function(){ t270_scroll = t270_scroll2}, 1000);setTimeout(function(){ clearInterval(refreshIntervalt270); },15000);</script>