document.write("
"); txt = ""; var myLink = new Array(); var myText = new Array(); var currLine = 0; var currPos = 0; myText[1] = "Climate change 'shrinking Scottish sheep'"; myLink[1] = "http://www.edie.ie/news/news_story.asp?id=16656&title=Climate+change+%27shrinking+Scottish+sheep%27"; myText[2] = "Authorities advised on waste collection from flats"; myLink[2] = "http://www.edie.ie/news/news_story.asp?id=16653&title=Authorities+advised+on+waste+collection+from+flats"; myText[3] = "Scotland unveils action plan for renewables"; myLink[3] = "http://www.edie.ie/news/news_story.asp?id=16651&title=Scotland+unveils+action+plan+for+renewables"; myText[4] = "Scottish flood protection scheme to go ahead despite local protest"; myLink[4] = "http://www.edie.ie/news/news_story.asp?id=16650&title=Scottish+flood+protection+scheme+to+go+ahead+despite+local+protest"; myText[5] = "Wealthy states pledge to promote 'green growth'"; myLink[5] = "http://www.edie.ie/news/news_story.asp?id=16648&title=Wealthy+states+pledge+to+promote+%27green+growth%27"; myText[6] = "Northern Ireland calls for Green New Deal"; myLink[6] = "http://www.edie.ie/news/news_story.asp?id=16647&title=Northern+Ireland+calls+for+Green+New+Deal"; myText[7] = "Ontario to clean up Cold War radar sites"; myLink[7] = "http://www.edie.ie/news/news_story.asp?id=16646&title=Ontario+to+clean+up+Cold+War+radar+sites"; myText[8] = "Tradespeople want to give trustworthy energy efficiency advice"; myLink[8] = "http://www.edie.ie/news/news_story.asp?id=16645&title=Tradespeople+want+to+give+trustworthy+energy+efficiency+advice"; myText[9] = "Edie Awards for Environmental Excellence: deadline for entries extended"; myLink[9] = "http://www.edie.ie/news/news_story.asp?id=16640&title=Edie+Awards+for+Environmental+Excellence%3A+deadline+for+entries+extended"; myText[10] = "'Zero carbon hierarchy' for homes outlined"; myLink[10] = "http://www.edie.ie/news/news_story.asp?id=16638&title=%27Zero+carbon+hierarchy%27+for+homes+outlined"; 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); } }