function startTicker()
{
// Define run time values
theCurrentStory = -1;
theCurrentLength = 0;
tickerPaused = 0;
// Locate base objects
if (document.getElementById) {
theAnchorObject = document.getElementById("tickerAnchor");
runTheTicker();
}
else {
document.write("");
return true;
}
}
// Ticker main run loop
function runTheTicker()
{
var myTimeout;
// Go for the next story data block
if(theCurrentLength == 0)
{
if (tickerPaused == 1) {
setTimeout("runTheTicker()", myTimeout);
return;
}
theCurrentStory++;
theCurrentStory = theCurrentStory % theItemCount;
var pom = theSummaries[theCurrentStory].replace(/"/g,'"');
pom = pom.replace(/'/g,"'");
pom = pom.replace(/'/g,"'");
theStorySummary = pom;
theTargetLink = theSiteLinks[theCurrentStory];
theAnchorObject.href = theTargetLink;
thePrefix = "" + theLeadString + "";
}
// Stuff the current ticker text into the anchor
theAnchorObject.innerHTML = thePrefix +
theStorySummary.substring(0,theCurrentLength) + whatWidget();
// Modify the length for the substring and define the timer
if(theCurrentLength != theStorySummary.length)
{
for(var i=theCurrentLength; iADV: Add a Breaking News Ticker to Your Web Browser";
theSiteLinks[1] = "http://tickermyfeed.com/adv.php/NTg=";
theSummaries[2] = "Toyota to recall new Prius, other hybrids in Japan (AFP)";
theSiteLinks[2] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/toyota_to_recall_new_prius_other_hybrids_in_japan";
theSummaries[3] = "Key powers push for tougher sanctions against Iran (AFP)";
theSiteLinks[3] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/key_powers_push_for_tougher_sanctions_against_iran";
theSummaries[4] = "Super Bowl is most watched TV show ever (AP)";
theSiteLinks[4] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/super_bowl_is_most_watched_tv_show_ever";
theSummaries[5] = "Iran moves closer to nuke warhead capacity (AP)";
theSiteLinks[5] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/iran_moves_closer_to_nuke_warhead_capacity";
theSummaries[6] = "Weather closes government offices a second day (Reuters)";
theSiteLinks[6] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/weather_closes_government_offices_a_second_day";
theSummaries[7] = "Toyota to recall 436,000 hybrids globally (Reuters)";
theSiteLinks[7] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/toyota_to_recall_436000_hybrids_globally";
theSummaries[8] = "U.S. missionary in Haiti says trusts God to free her (Reuters)";
theSiteLinks[8] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/us_missionary_in_haiti_says_trusts_god_to_free_her";
theSummaries[9] = "Rep. John Murtha, voice for veterans, dies at 77 (AP)";
theSiteLinks[9] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/rep_john_murtha_voice_for_veterans_dies_at_77";
theSummaries[10] = "Workers accounted for at Connecticut blast (Reuters)";
theSiteLinks[10] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/workers_accounted_for_at_connecticut_blast";
theSummaries[11] = "Lawyer: Wife mulled extorting Ill. murder suspect (AP)";
theSiteLinks[11] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/lawyer_wife_mulled_extorting_ill_murder_suspect";
theSummaries[12] = "John Murtha, defense appropriations chair, dies (Reuters)";
theSiteLinks[12] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/john_murtha_defense_appropriations_chair_dies";
theSummaries[13] = "Seats at a premium on planes, trains out of DC (AP)";
theSiteLinks[13] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/seats_at_a_premium_on_planes_trains_out_of_dc";
var theItemCount = theSummaries.length;
if (window.addEventListener)
window.addEventListener("load", startTicker, false)
else if (window.attachEvent)
window.attachEvent("onload", startTicker)
else if (document.getElementById)
window.onload=startTicker
document.write('