/* This script and many more are available free online at The JavaScript Source :: http://javascript.internet.com Created by: Mike Hudson :: http://www.afrozeus.com */ function setupLinks() { arrTitles[0] = "Stiglitz urges Britain to continue stimulus (AFP)"; arrLinks[0] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/stiglitz_urges_britain_to_continue_stimulus"; arrTitles[1] = "ADV: Win a Apple MacBook 13-inch Notebook Computer Now"; arrLinks[1] = "http://tickermyfeed.com/adv.php/NTk="; arrTitles[2] = "Top Canadian military official charged with murder (AP)"; arrLinks[2] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/top_canadian_military_official_charged_with_murder"; arrTitles[3] = "ADV: Add a Breaking News Ticker to Your Web Browser"; arrLinks[3] = "http://tickermyfeed.com/adv.php/NTg="; arrTitles[4] = "Iran moves closer to nuke warhead capacity (AP)"; arrLinks[4] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/iran_moves_closer_to_nuke_warhead_capacity"; arrTitles[5] = "Mexico arrests 2 reputed leaders of Tijuana gang (AP)"; arrLinks[5] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/mexico_arrests_2_reputed_leaders_of_tijuana_gang"; arrTitles[6] = "Activists ambush Japanese whalers in Antarctic seas (AFP)"; arrLinks[6] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/activists_ambush_japanese_whalers_in_antarctic_seas"; arrTitles[7] = "UN: some Haitian hospitals are charging patients (AP)"; arrLinks[7] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/un_some_haitian_hospitals_are_charging_patients"; arrTitles[8] = "I.Coast at risk of civil war: ex-rebel (AFP)"; arrLinks[8] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/icoast_at_risk_of_civil_war_ex-rebel"; arrTitles[9] = "Conservatives hold only slim lead: poll (Reuters)"; arrLinks[9] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/conservatives_hold_only_slim_lead_poll"; arrTitles[10] = "Tel Aviv \"savior\" accused of enslaving women (AP)"; arrLinks[10] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/tel_aviv_savior_accused_of_enslaving_women"; arrTitles[11] = "Leaders Walk in the Shoes of a Refugee (OneWorld.net)"; arrLinks[11] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/leaders_walk_in_the_shoes_of_a_refugee"; arrTitles[12] = "Ukraine exit polls: Yanukovich wins presidential election (The Christian Science Monitor)"; arrLinks[12] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/ukraine_exit_polls_yanukovich_wins_presidential_election"; arrTitles[13] = "A Year After Fires, Australia Debates What Went Wrong (Time.com)"; arrLinks[13] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/a_year_after_fires_australia_debates_what_went_wrong"; } var m_iInterval; var m_Height; //window.onload = wl; var iScroll=0; var arrLinks; var arrTitles; var arrCursor = 0; var arrMax; window.onload=wl; function wl() { m_iInterval = setInterval(ontimer, 15); var base = document.getElementById("jump_base"); m_Height = base.offsetHeight; var divi = parseInt(m_Height/5); m_Height = divi*5; var td1 = document.getElementById("td1"); var td2 = document.getElementById("td2"); var td3 = document.getElementById("td3"); td1.height = m_Height-5; td2.height = m_Height-5; td3.height = m_Height-5; arrLinks = new Array(); arrTitles = new Array(); setupLinks(); arrMax = arrLinks.length-1; setLink(); } function setLink() { var ilink = document.getElementById("jump_link"); ilink.innerHTML = arrTitles[arrCursor]; ilink.href = arrLinks[arrCursor]; } function ontimer() { var base = document.getElementById("jump_base"); iScroll+=1; if (iScroll>(m_Height*2)) { iScroll=0; arrCursor++; if (arrCursor>arrMax) arrCursor=0; setLink(); } if (iScroll==m_Height) { pause(); m_iInterval = setTimeout(resume, 2000); } base.scrollTop=iScroll; } function pause() { clearInterval(m_iInterval); } function resume() { m_iInterval = setInterval(ontimer, 15); } function pausecomp(millis) { var date = new Date(); var curDate = null; do { curDate = new Date(); } while(curDate-date < millis); } document.write('
ADV: Win a Apple MacBook 13-inch Notebook Computer Now
'); document.write('
ADV: Add a Breaking News Ticker to Your Web Browser
'); document.write('
'); document.write(''); document.write(''); document.write('
');