/* FILE ARCHIVED ON 19:10:06 Jan 3, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 2:27:22 May 31, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ //var news=Array("This is the NEWS-TICKER TEXT EFFECT", "Brought to you by the good people at www.mf2fm.com/rv", "Did you note how the web-address was turned into a hyperlink?", "Another free effect - "+String.fromCharCode(169)+"2004-5 RV's free DHTML effects", "Check back from time to time to get the latest scripts..."); var news=Array("Singapore Petroleum Says CEO to Retire","Russia and Ukraine Must End Gas Row Says IEA","US Urges Normal Russia-Ukraine Gas Deliveries","PetroChina to Expand Natural Gas Network ","Korea Gas Expects to Swing to 2009 Net Profit","Russia Oil Output Falls for First Time in a Decade","News to Resume in New Year","Oman Says Gulf Rulers to Discuss Oil's Fall ","Grey Wolf Shareholders Approve Precision Deal","Opec May Call Extra Talks if Oil Falls"); var links=Array("/news/news48080.html","/news/news48074.html","/news/news48073.html","/news/news48072.html","/news/news48070.html","/news/news48069.html","/news/news48052.html","/news/news47999.html","/news/news47993.html","/news/news47987.html"); var cursor="_"; // set cursor var delay=12; // seconds between each news item /***************************\ * News Ticker Text Effect * *(c) 2004-6 mf2fm web-design* * https://webarchive.library.unt.edu/eot2008/20090103191006/http://www.mf2fm.com/rv * * DON'T EDIT BELOW THIS BOX * \***************************/ var newsp, cursp, flash, item=0; window.onload=function() { if (document.getElementById) { var span=document.getElementById("news"); while (span.childNodes.length) span.removeChild(span.childNodes[0]); delay*=1000; newsp=document.createElement("a"); //newsp.setAttribute('style','text-decoration:none; color:black;'); cursp=document.createElement("span"); cursp.appendChild(document.createTextNode(String.fromCharCode(160)+cursor)); //cursp.appendChild(document.createHTMLNode(String.fromCharCode(160)+cursor)); span.appendChild(newsp); span.appendChild(cursp); ticker(); }} function ticker() { var i; while (newsp.childNodes.length) newsp.removeChild(newsp.childNodes[0]); newsp.setAttribute('href',links[item]); newsp.appendChild(document.createTextNode(news[item].substring(0,1))); for (i=1; i< news[item].length; i++) setTimeout('newsp.firstChild.nodeValue="'+news[item].substring(0, i+1)+'"', 100*i); if (news[item].indexOf("www")!=-1) setTimeout('linkit('+item+')', 100*i); setTimeout('flash=setInterval("cursp.style.visibility=(cursp.style.visibility==\'visible\')?\'hidden\':\'visible\'", 234)', 100*i) setTimeout('clearInterval(flash)', delay); setTimeout('cursp.style.visibility="visible"', delay); setTimeout('ticker()', delay); item=++item%news.length; } function linkit(q) { var a,p,e,l; p=news[q].indexOf("www"); e=news[q].indexOf(" ", p); if (e==-1) e=news[q].length; l=news[q].substring(p, e); while (newsp.childNodes.length) newsp.removeChild(newsp.childNodes[0]); newsp.appendChild(document.createTextNode(news[q].substring(0, p))); a=document.createElement("a"); a.href="http://"+l; a.appendChild(document.createTextNode(l)); newsp.appendChild(a); newsp.appendChild(document.createTextNode(news[q].substring(e))); }