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=1057530#news_id_1057530', '9 feb 15:59 Roma, Mediaset si fa l’agenzia, nel 2010 l’“all news” di Giordano'); aNews[1] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057484#news_id_1057484', '9 feb 15:55 Roma, Manifesti abusivi, Polverini richiama i suoi. Bonino: Sarò corretta'); aNews[2] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057505#news_id_1057505', '9 feb 15:37 Roma, Agricoltura nei parchi: in primavera a Roma 200 nuovi orti urbani'); aNews[3] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057503#news_id_1057503', '9 feb 15:35 Roma, Antidroga/Sintonia con ministero Salute su Hiv in carceri'); aNews[4] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057497#news_id_1057497', '9 feb 15:33 Roma, Camera, Giachetti solleva in aula questione badge di Vespa'); aNews[5] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057489#news_id_1057489', '9 feb 15:29 Roma, La concorrenza europea in America Latina, sfida agli Usa'); aNews[6] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057452#news_id_1057452', '9 feb 15:16 Roma, Spagna, Zapatero: Proroga di 6 mesi per assegni disoccupazione'); aNews[7] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057470#news_id_1057470', '9 feb 15:15 Roma, Antitrust: fari puntati su gas e carburanti'); aNews[8] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057461#news_id_1057461', '9 feb 15:13 Roma, Iran, miliziani tentano assalto all’ambasciata italiana'); aNews[9] = addTickerNews('http://www.ilvelino.it/articolo.php?Id=1057463#news_id_1057463', '9 feb 15:12 Roma, Iran, Frattini: Per nuove sanzioni occorre convincere la Cina'); 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(); }