function addTickerNews(href, html) { var tickerNews = new Array(); tickerNews['href'] = href; tickerNews['html'] = html; return(tickerNews); } var aNews = new Array(); aNews[0] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193654#news_id_1193654', '7 set 21:12 Roma, Fini: Resto presidente della Camera fino alla fine della legislatura'); aNews[1] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193627#news_id_1193627', '7 set 20:48 Roma, Casa Montecarlo, Fini: Offerta era congrua, ho detto io: vendere'); aNews[2] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193566#news_id_1193566', '7 set 19:37 Reggio Calabria, \'Ndrangheta, Pignatone: Ha rapporti con la borghesia mafiosa'); aNews[3] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193551#news_id_1193551', '7 set 19:34 Reggio Calabria, \'Ndrangheta, Creazzo: Se la gente si ribella è finita'); aNews[4] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193561#news_id_1193561', '7 set 19:33 Reggio Calabria, \'Ndrangheta, Grasso: È un problema internazionale '); aNews[5] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193569#news_id_1193569', '7 set 19:31 Reggio Calabria, \'Ndrangheta, Scopelliti: La Russa è pronto a inviare l\'esercito'); aNews[6] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193544#news_id_1193544', '7 set 19:20 Roma, Gb, il patron della Hsbc entra nel governo di David Cameron'); aNews[7] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193535#news_id_1193535', '7 set 19:15 Roma, Tremonti: Nessuna emergenza, Paese è più serio di quanto si immagini '); aNews[8] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193536#news_id_1193536', '7 set 19:13 Roma, Pmi, dalla Regione Lazio 39 mln per ricerca e sviluppo'); aNews[9] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1193528#news_id_1193528', '7 set 19:09 Roma, Federalismo, il Governo avvia l\'esame del dlgs su quello Regionale'); var numNews = 10; function populate() { if (iedom) { cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee cross_marquee.style.left=parseInt(marqueewidth)+8+"px" cross_marquee.innerHTML=marqueecontent actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth } else if (document.layers) { ns_marquee=document.ns_marquee.document.ns_marquee2 ns_marquee.left=parseInt(marqueewidth)+8 ns_marquee.document.write(marqueecontent) ns_marquee.document.close() actualwidth=ns_marquee.document.width } } function setScrollInterval() { lefttime=setInterval("scrollmarquee()",20) } function scrollmarquee() { if (iedom) { if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px" else cross_marquee.style.left=parseInt(marqueewidth)+8+"px" } else if (document.layers){ if (ns_marquee.left>(actualwidth*(-1)+8)) ns_marquee.left-=copyspeed else ns_marquee.left=parseInt(marqueewidth)+8 } } function getMarqueeWidth() { var mywidth = marqueewidth if (subtractMode) { if (iedom) { if (document.all) { mywidth=document.body.offsetWidth mywidth -= 55 } else { mywidth=document.getElementsByTagName("body")[0].offsetWidth mywidth -= 35 } } else if (document.layers) { mywidth=window.innerWidth } mywidth -= subtractModeWidth } return(mywidth) } function resizeMarquee() { marqueewidth = getMarqueeWidth(); if (iedom) { cross_marquee_container=document.getElementById ? document.getElementById("marqueeContainer1") : document.all.marqueeContainer1 cross_marquee_container.style.width = marqueewidth+"px" cross_marquee_container=document.getElementById ? document.getElementById("marqueeContainer2") : document.all.marqueeContainer2 cross_marquee_container.style.width = marqueewidth+"px" } else if (document.layers) { document.ns_marquee.document.width = marqueewidth } populate(); } var marqueecontent = ''; marqueecontent += ''; for(var i = 0; i < numNews; i++) { marqueecontent += '' + aNews[i]['html'] + ''; if (i < (numNews - 1)) { marqueecontent += '  ::::  '; } } marqueecontent += ''; var copyspeed=marqueespeed var pausespeed=(marqueepauseit==0)? copyspeed: 0 var actualwidth='' var cross_marquee, ns_marquee var iedom=document.all||document.getElementById if (iedom) document.write('') var oldOnload=window.onload window.onload=function() {if (oldOnload) oldOnload();populate();setScrollInterval();} if (subtractMode) { var oldOnresize=window.onresize window.onresize=function() {if (oldOnresize) oldOnresize(); resizeMarquee();} } if (iedom||document.layers){ marqueewidth = getMarqueeWidth(); with (document) { document.write('') document.write('') document.write('') document.write('') document.write('
') if (iedom) { write('
') write('
') write('
') write('
') write('
') } else if (document.layers) { write('') write('') write('') } document.write('
') } resizeMarquee(); }