Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<html>
<head>
<title></title>
<style type="text/css">
#scrcontainer {
width: 250px; height: 150px;
border: 1px solid black;
position: relative;
overflow: hidden;
}
#scrinner {
position: absolute;
left: 0px; top: 0px;
text-align: left;
}
</style>
<script type="text/javascript">
var
flag=0, timer=null,
scrwid, scrtop=0, speed=1,
speedmax=8, speedmin=1,
inner, innerhei
;
function scrollit(dir,ev) {
if(dir=='down' && scrtop*1>=scrhei-innerhei) {
scrtop-=speed;
inner.style.top=scrtop+'px';
}
if(dir=='up' && scrtop*1<=0) {
scrtop+=speed;
inner.style.top=scrtop+'px';
}
timer=window.setTimeout("scrollit('"+dir+"');",1);
}
function scrclear() {window.clearTimeout(timer);}
function getParams() {
scrhei=document.getElementById('scrcontainer').offsetHeight;
innerhei=document.getElementById('scrinner').offsetHeight;
inner=document.getElementById('scrinner');
var arrup=document.getElementById('arrup');
var arrdown=document.getElementById('arrdown');
// Upward
arrup.onmouseover=function() {scrollit('up');}
arrup.onmouseout=function() {scrclear();}
arrup.onmousedown=function() {speed=speedmax;}
arrup.onmouseup=function() {speed=speedmin;}
// Downward
arrdown.onmouseover=function() {scrollit('down');}
arrdown.onmouseout=function() {scrclear();}
arrdown.onmousedown=function() {speed=speedmax;}
arrdown.onmouseup=function() {speed=speedmin;}
}
window.onload=getParams;
</script>
</head>
<body>
<div id="scrcontainer">
<span id="scrinner">
Кубинските власти върнаха десетки чуждестранни журналисти, опитващи се да отразят временното предаване на властта от страна на Фидел Кастро. Репортерите бяха предупредени, че ако опитат да влязат в страната, представяйки се за туристи, това ще е нарушение на закона, предадоха агенциите. Комунистическият режим упражнява строг контрол над новините и информацията и изисква от чуждестранните медии да кандидатстват за журналистически визи и акредитации. Процедурата обикновено отнема три седмици. "Който наруши тези правила, било то съзнателно или неволно, ще получи забрана за влизане в страната", съобщи държавната информационна агенция "Пренса Латина".
</span>
</div>
<a href="#" id="arrup">Нагоре</a> / <a href="#" id="arrdown">Надолу</a>
</body>
</html>