var arrNewsItems = new Array(); arrNewsItems.push(new Array("Earl threatens East Coast with 125 mph winds (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/earl_threatens_east_coast_with_125_mph_winds")); arrNewsItems.push(new Array("Israel, Palestinians agree to 2nd round of talks (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/israel_palestinians_agree_to_2nd_round_of_talks")); arrNewsItems.push(new Array("ADV: Win a Apple MacBook 13-inch Notebook Computer Now", "http://tickermyfeed.com/adv.php/NTk=")); arrNewsItems.push(new Array("Can home cooking be hazardous to your health? (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/can_home_cooking_be_hazardous_to_your_health")); arrNewsItems.push(new Array("Israelis and Palestinians agree to more peace meetings (Reuters)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/israelis_and_palestinians_agree_to_more_peace_meetings")); arrNewsItems.push(new Array("ADV: Add a Breaking News Ticker to Your Web Browser", "http://tickermyfeed.com/adv.php/NTg=")); arrNewsItems.push(new Array("Burger King agrees to $3.3 billion sale to 3G Capital (Reuters)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/burger_king_agrees_to_$33_billion_sale_to_3g_capital")); arrNewsItems.push(new Array("American teen Capra upsets 18th-seeded Rezai (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/american_teen_capra_upsets_18th-seeded_rezai")); arrNewsItems.push(new Array("Oil sheen spreads from Gulf platform after fire (Reuters)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/oil_sheen_spreads_from_gulf_platform_after_fire")); arrNewsItems.push(new Array("Abbas, Netanyahu vow to meet every two weeks for peace (AFP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/abbas_netanyahu_vow_to_meet_every_two_weeks_for_peace")); arrNewsItems.push(new Array("Pakistan gets IMF relief, tightens security (Reuters)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/pakistan_gets_imf_relief_tightens_security")); arrNewsItems.push(new Array("Double hand transplant patient shows new hands (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/double_hand_transplant_patient_shows_new_hands")); arrNewsItems.push(new Array("Elizabeth Warren schedule shift fuels talk on U.S. consumer job (Reuters)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/elizabeth_warren_schedule_shift_fuels_talk_on_us_consumer_job")); arrNewsItems.push(new Array("EPA to issue more rules in climate fight (Reuters)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/epa_to_issue_more_rules_in_climate_fight")); arrNewsItems.push(new Array("More Dems buck plan to let taxes increase for rich (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/more_dems_buck_plan_to_let_taxes_increase_for_rich")); arrNewsItems.push(new Array("Google, Skype targeted in India security crackdown (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/google_skype_targeted_in_india_security_crackdown")); arrNewsItems.push(new Array("Discounts spur surprising Aug. retail sales gains (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/discounts_spur_surprising_aug_retail_sales_gains")); arrNewsItems.push(new Array("Justice Department sues Arizona sheriff in immigration probe (Reuters)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/justice_department_sues_arizona_sheriff_in_immigration_probe")); arrNewsItems.push(new Array("Hurricane Earl bears down on East Coast (Reuters)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/hurricane_earl_bears_down_on_east_coast")); arrNewsItems.push(new Array("Hurricane Earl menaces US East Coast (AFP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/hurricane_earl_menaces_us_east_coast")); arrNewsItems.push(new Array("Oil platform explodes off La. coast, spreading oil (AP)", "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/oil_platform_explodes_off_la_coast_spreading_oil")); var intTickDelay = 4000; var intTickPos = 0; var tickLocked = false; var fadeTimerID; var autoTimerID = 0; var intTypeSpeed = 50; var intCurrentPos = 0; var currentText = ''; var currentLink = ''; var strText = ''; var isFirstPass = true; var operbr=navigator.userAgent.toLowerCase().indexOf('opera'); function init_Buttons(a) { var kids = a.document.getElementsByTagName('img'); for (var i=0; i < kids.length; i++) { kids[i].onclick = buttonClick; kids[i].onmousedown = buttonDown; kids[i].onmouseup = buttonUp; kids[i].oncontextmenu = buttonMenu; } //document.getElementById("tickContentLink").onmouseover = stopTicker; //document.getElementById("tickContentLink").onmouseout = resumeTicker; getLinkElems(); playFirstTicker(); } function buttonMenu(e) { return false; } function buttonDown(e) { if (!e) var e = window.event; if ((tickLocked == false) && (e.button != 2)) { document.getElementById(this.id).style.cssText = "margin: 2px 0px 0px 2px;"; } } function buttonUp(e) { if (!e) var e = window.event; if ((tickLocked == false) && (e.button != 2)) { document.getElementById(this.id).style.cssText = ""; } } function buttonClick(e) { delayTicker(); if (this.id == "back") { prevArticle(); } else if (this.id == "next") { nextArticle(); } } function prevArticle() { if (tickLocked == false) { if (intTickPos == 0) { intTickPos = arrNewsItems.length-1; } else { intTickPos--; } setArticle(intTickPos); } } function nextArticle() { if (tickLocked == false) { if (intTickPos == arrNewsItems.length-1) { intTickPos = 0; } else { intTickPos++; } setArticle(intTickPos); } } function typeText() { if(intCurrentPos < currentText.length) { strText += currentText.charAt(intCurrentPos); setSpan(strText,currentLink); intCurrentPos++; } else if (intCurrentPos == currentText.length) { strText += currentText.charAt(intCurrentPos); setSpan(strText,currentLink); clearInterval(typeInterval); hideCursor(); } else if (intCurrentPos > currentText.length){ setSpan(strText,currentLink); clearInterval(typeInterval); hideCursor(); } } function setSpan(strText, strLink) { var tickElem = this.document.getElementById("tick"); var tickFirstChild = tickElem.firstChild; var tickLinkElem = document.createElement("a"); tickLinkElem.setAttribute('href', strLink); tickLinkElem.setAttribute('target', '_parent'); if(document.all&&operbr==-1){ tickLinkElem.setAttribute('className', 'tickl'); } else if(document.getElementById){ tickLinkElem.setAttribute('class', 'tickl'); } tickText = document.createTextNode(strText); tickLinkElem.appendChild(tickText); tickElem.replaceChild(tickLinkElem,tickFirstChild); getLinkElems(); } function getLinkElems() { var tickerElem = document.getElementById("tick"); var tickerAElem = tickerElem.getElementsByTagName("a"); for (var i=0; i < tickerAElem.length; i++) { tickerAElem[i].onmouseover = stopTicker; tickerAElem[i].onmouseout = resumeTicker; } } function setArticle(intPos) { if(arrNewsItems[intPos]!=null) { tickLocked = true; intCurrentPos = 0; strText = ''; setSpan('', '#'); showCursor(); currentText = arrNewsItems[intPos][0]; currentLink = arrNewsItems[intPos][1]; typeInterval = setInterval( "typeText()", intTypeSpeed); tickLocked = false; } } function playTicker() { isInFirstTimeout = false; if (autoTimerID != 0) { clearInterval(typeInterval); nextArticle(); } autoTimerID = self.setTimeout("playTicker()", intTickDelay+(intTypeSpeed*arrNewsItems[intTickPos][0].length)); } function playFirstTicker() { if(isFirstPass == true) { hideCursor(); setSpan(this.arrNewsItems[0][0],this.arrNewsItems[0][1]); isFirstPass = false; typeInterval = setInterval('',0); isInFirstTimeout = true; autoTimerID = self.setTimeout("playFirstTicker()", intTickDelay); } else if(isFirstPass == false) { clearTimeout(autoTimerID); isInFirstTimeout = false; setArticle(intTickPos); playTicker(); } } function stopTicker() { clearTimeout(autoTimerID); } function resumeTicker() { clearTimeout(autoTimerID); autoTimerID = self.setTimeout("playTicker()", intTickDelay); } function delayTicker() { clearTimeout(autoTimerID); clearInterval(typeInterval); autoTimerID = self.setTimeout("playTicker()", intTickDelay); } function hideCursor() { document.getElementById("cursor").className = "hidden"; } function showCursor() { document.getElementById("cursor").className = ""; } 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('_'); document.write('
'); document.write(''); document.write('
');