function setupLinks() { arrLinks[0] = "http://questure.poliziadistato.it/it/AscoliPiceno/articolo/11165888d70568afc202501633"; arrTitles[0] = "Operazione della Polizia di Stato "BLACK OPS""; arrLinks[1] = "http://questure.poliziadistato.it/it/Alessandria/articolo/11065888d2e4d0d98114930137"; arrTitles[1] = "Operazione della Polizia di Stato "Affari in Famiglia". Quattro denunciati per furto in abitazione."; arrLinks[2] = "http://questure.poliziadistato.it/it/Vicenza/articolo/13805888d3f46aa75867819033"; arrTitles[2] = "VICENZA, FIERA DELL'ORO: POLIZIA DI STATO ARRESTA LATITANTE DELLA BANDA DEI PINK PANTHER E I SUOI DUE COMPLICI PROFESSIONISTI DEL FURTO"; arrLinks[3] = "http://questure.poliziadistato.it/it/Treviso/articolo/13125888b55f774e9120640178"; arrTitles[3] = "Celebrazione 20°anniversario della morte dell'Isp. Paccagnan, l'Ass. Soligo, e gli Ag. sc. Scapinello e Murer"; arrLinks[4] = "http://questure.poliziadistato.it/it/Trieste/articolo/13185888af5e416d2690342900"; arrTitles[4] = "Cittadino albanese arrestato a Fernetti"; } var m_iInterval; var m_Height; var iScroll=0; var arrLinks; var arrTitles; var arrCursor = 0; var arrMax; window.onload=wl; function wl() { m_iInterval = setInterval(ontimer, 100); var base = document.getElementById("jump_base"); m_Height = base.offsetHeight; var divi = parseInt(m_Height/5); m_Height = divi*5; var td1 = document.getElementById("td1"); var td2 = document.getElementById("td2"); var td3 = document.getElementById("td3"); td1.height = m_Height-5; td2.height = m_Height-5; td3.height = m_Height-5; arrLinks = new Array(); arrTitles = new Array(); setupLinks(); arrMax = arrLinks.length-1; setLink(); } function setLink() { var ilink = document.getElementById("jump_link"); ilink.innerHTML = arrTitles[arrCursor]; ilink.href = arrLinks[arrCursor]; } function ontimer() { var base = document.getElementById("jump_base"); iScroll+=5; if (iScroll>(m_Height*2)) { iScroll=0; arrCursor++; if (arrCursor>arrMax) arrCursor=0; setLink(); } if (iScroll==m_Height) { pause(); m_iInterval = setTimeout(resume, 6000); } base.scrollTop=iScroll; } function pause() { clearInterval(m_iInterval); } function resume() { m_iInterval = setInterval(ontimer, 100); }