document.write("
"); txt = ""; var myLink = new Array(); var myText = new Array(); var currLine = 0; var currPos = 0; myText[1] = "Dublin should become 'smart green city economy'"; myLink[1] = "http://www.edie.net/news/news_story.asp?id=17778&title=Dublin+should+become+%27smart+green+city+economy%27"; myText[2] = "Government must help people turn green homes dream into reality"; myLink[2] = "http://www.edie.net/news/news_story.asp?id=17775&title=Government+must+help+people+turn+green+homes+dream+into+reality"; myText[3] = "Northern Ireland launches waste prevention website"; myLink[3] = "http://www.edie.net/news/news_story.asp?id=17774&title=Northern+Ireland+launches+waste+prevention+website"; myText[4] = "Scientists unveil plastic with potential for infinite recycling"; myLink[4] = "http://www.edie.net/news/news_story.asp?id=17770&title=Scientists+unveil+plastic+with+potential+for+infinite+recycling"; myText[5] = "Green skills shortage highlighted by report"; myLink[5] = "http://www.edie.net/news/news_story.asp?id=17769&title=Green+skills+shortage+highlighted+by+report"; myText[6] = "Firm 'turned river white' with pollution "; myLink[6] = "http://www.edie.net/news/news_story.asp?id=17768&title=Firm+%27turned+river+white%27+with+pollution++"; myText[7] = "Health the key ground in climate change battle "; myLink[7] = "http://www.edie.net/news/news_story.asp?id=17767&title=Health+the+key+ground+in+climate+change+battle+"; myText[8] = "Greener buildings good for industry, consumers and planet - Robert Napier"; myLink[8] = "http://www.edie.net/news/news_story.asp?id=17766&title=Greener+buildings+good+for+industry%2C+consumers+and+planet+%2D+Robert+Napier"; myText[9] = "Water firm fined for pollution"; myLink[9] = "http://www.edie.net/news/news_story.asp?id=17765&title=Water+firm+fined+for+pollution"; myText[10] = "Clipper CEO quits after 'financially challenging period'"; myLink[10] = "http://www.edie.net/news/news_story.asp?id=17764&title=Clipper+CEO+quits+after+%27financially+challenging+period%27"; var numLines = 10; tickerInit(); // This must be called after our 'changing link' tickerBase is declared function tickerInit() { // Only init the routine if our browser supports 'getElementByID' if (document.getElementById) { t = document.getElementById('ticker'); //t.innerHTML = " Breaking News: "; t.innerHTML = ""; //t.innerHTML += ""; t.innerHTML += ""; tbase = document.createElement("a"); tbase.style.border = '1px'; tbase.style.padding = '0px'; tbase.style.textDecoration = 'none'; tbase.innerHTML = ''; tbase.href = myLink[0]; tbase.target = "_new"; document.getElementById('ticker').appendChild(tbase); myText[0]=" " doTick(); } } // Called every few milliseconds to update the current text shown function doTick() { if (myText[currLine] == null) { currLine = 0; } tbase.href = myLink[currLine]; tbase.innerHTML = myText[currLine].substring(0,currPos) + "_"; if(currPos++ < myText[currLine].length) { setTimeout("doTick()", 55); } else { if (currLine++ >= numLines) currLine = 0; currPos = 0; setTimeout("doTick()", 2000); } }