function startTicker() { // Define run time values theCurrentStory = -1; theCurrentLength = 0; tickerPaused = 0; // Locate base objects if (document.getElementById) { theAnchorObject = document.getElementById("tickerAnchor"); theAnchorObjectHid = document.getElementById('tickerAnchorHid'); runTheTicker(); } else { document.write(""); return true; } } var advStart; // 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,"'"); var theStorySummaryWIthoutStripped = pom; var stripped = stripHTML(pom); if(stripped == theStorySummaryWIthoutStripped) { theStorySummary = theStorySummaryWIthoutStripped; advStart = 0; thePrefix = ""; thePostfix = ""; } else { theStorySummary = stripped; advStart = theStorySummaryWIthoutStripped.length - stripped.length - 7; thePrefix = theStorySummaryWIthoutStripped.substring(0,advStart); thePostfix = ""; advStart = 0; } theTargetLink = theSiteLinks[theCurrentStory]; theAnchorObject.href = theTargetLink; } // Stuff the current ticker text into the anchor var text = thePrefix + theStorySummary.substring(advStart,theCurrentLength) + whatWidget() + thePostfix; theAnchorObjectHid.innerHTML = text var widthpx = theAnchorObjectHid.offsetWidth //alert(advStart+"; "+widthpx+" - "+450) if(widthpx>=450) { advStart++; advStart++; } var text = thePrefix + theStorySummary.substring(advStart,theCurrentLength) + whatWidget() + thePostfix; theAnchorObject.innerHTML = text // Modify the length for the substring and define the timer if(theCurrentLength != theStorySummary.length) { theCurrentLength++; myTimeout = theCharacterTimeout; } else { theCurrentLength = 0; myTimeout = theStoryTimeout; } // Call up the next cycle of the ticker setTimeout("runTheTicker()", myTimeout); } // Widget generator function whatWidget() { if(theCurrentLength == theStorySummary.length) { return theWidgetNone; } if((theCurrentLength % 2) == 1) { return theWidgetOne; } else { return theWidgetTwo; } } function pauseTicker(){ tickerPaused = 1; } function unpauseTicker(){ tickerPaused = 0; } function stripHTML(value){ var re= /<\S[^><]*>/g; return value.replace(re, ""); } var theCharacterTimeout = 40; var theStoryTimeout = 2000; var theWidgetOne = "_"; var theWidgetTwo = "-"; var theWidgetNone = ""; var theLeadString = ""; // LATEST var theSummaries = new Array(); var theSiteLinks = new Array(); theSummaries[0] = "Las Vegas casino evacuated after bomb threat"; theSiteLinks[0] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/las_vegas_casino_evacuated_after_bomb_threat/?link=aHR0cDovL3d3dy5rYXJlMTEuY29tL25ld3MvbmF0aW9uYWwvbmF0aW9uYWxfYXJ0aWNsZS5hc3B4P3N0b3J5aWQ9ODcwMzQ0&title=TGFzIFZlZ2FzIGNhc2lubyBldmFjdWF0ZWQgYWZ0ZXIgYm9tYiB0aHJlYXQ="; theSummaries[1] = "ADV: Add This Ticker to Your Website for Free"; theSiteLinks[1] = "http://tickermyfeed.com/adv.php/NA=="; theSummaries[2] = "Las Vegas casino evacuated"; theSiteLinks[2] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/las_vegas_casino_evacuated/?link=aHR0cDovL3d3dy5zdHJhaXRzdGltZXMuY29tL0JyZWFraW5nTmV3cy9Xb3JsZC9TdG9yeS9TVElTdG9yeV81NzUwOTEuaHRtbA==&title=TGFzIFZlZ2FzIGNhc2lubyBldmFjdWF0ZWQ="; theSummaries[3] = "ADV: Slide in Banner Exchange for Webmasters"; theSiteLinks[3] = "http://tickermyfeed.com/adv.php/MTE="; theSummaries[4] = "Dying Dennis Hopper among the stars of Las Vegas film project"; theSiteLinks[4] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/dying_dennis_hopper_among_the_stars_of_las_vegas_film_project/?link=aHR0cDovL3d3dy5pbmRlcGVuZGVudC5jby51ay9hcnRzLWVudGVydGFpbm1lbnQvZmlsbXMvbmV3cy9keWluZy1kZW5uaXMtaG9wcGVyLWFtb25nLXRoZS1zdGFycy1vZi1sYXMtdmVnYXMtZmlsbS1wcm9qZWN0LTIwNzEyNzkuaHRtbA==&title=RHlpbmcgRGVubmlzIEhvcHBlciBhbW9uZyB0aGUgc3RhcnMgb2YgTGFzIFZlZ2FzIGZpbG0gcHJvamVjdA=="; theSummaries[5] = "ADV: Automated Link Exchange for Webmasters"; theSiteLinks[5] = "http://tickermyfeed.com/adv.php/MTI="; theSummaries[6] = "Las Vegas: Tourism officials expect more visitors but less gambling this weekend"; theSiteLinks[6] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/las_vegas_tourism_officials_expect_more_visitors_but_less_gambling_this_weekend/?link=aHR0cDovL3d3dy5yZ2ouY29tL2FydGljbGUvMjAxMDA5MDMvQklaLzEwMDkwMzAxNy8xMDcxL2Jpeg==&title=TGFzIFZlZ2FzOiBUb3VyaXNtIG9mZmljaWFscyBleHBlY3QgbW9yZSB2aXNpdG9ycyBidXQgbGVzcyBnYW1ibGluZyB0aGlzIHdlZWtlbmQ="; theSummaries[7] = "ADV: Win a Apple MacBook 13-inch Notebook Computer Now"; theSiteLinks[7] = "http://tickermyfeed.com/adv.php/NTk="; theSummaries[8] = "Las Vegas beats Snow Canyon, 49-7"; theSiteLinks[8] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/las_vegas_beats_snow_canyon_49-7/?link=aHR0cDovL3d3dy5sYXN2ZWdhc3N1bi5jb20vbmV3cy8yMDEwL3NlcC8wMy9sYXMtdmVnYXMtc25vdy1jYW55b24v&title=TGFzIFZlZ2FzIGJlYXRzIFNub3cgQ2FueW9uLCA0OS03"; theSummaries[9] = "ADV: Add a Breaking News Ticker to Your Web Browser"; theSiteLinks[9] = "http://tickermyfeed.com/adv.php/NTg="; theSummaries[10] = "Las Vegas 9, Portland 1: Beavers manage four hits against three pitchers"; theSiteLinks[10] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/las_vegas_9_portland_1_beavers_manage_four_hits_against_three_pitchers/?link=aHR0cDovL3d3dy5vcmVnb25saXZlLmNvbS9wYmVhdmVycy9pbmRleC5zc2YvMjAxMC8wOS9sYXNfdmVnYXNfOV9wb3J0bGFuZF8xX2JlYXZlcnNfMS5odG1s&title=TGFzIFZlZ2FzIDksIFBvcnRsYW5kIDE6IEJlYXZlcnMgbWFuYWdlIGZvdXIgaGl0cyBhZ2FpbnN0IHRocmVlIHBpdGNoZXJz"; theSummaries[11] = "Las Vegas: Two school officials arrested on meth charges"; theSiteLinks[11] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/las_vegas_two_school_officials_arrested_on_meth_charges/?link=aHR0cDovL3d3dy5yZ2ouY29tL2FydGljbGUvMjAxMDA5MDMvTkVXUzA3LzEwMDkwMzAwOS8xMzIxL05FV1MvTGFzLVZlZ2FzLS1Ud28tc2Nob29sLW9mZmljaWFscy1hcnJlc3RlZC1vbi1tZXRoLWNoYXJnZXM=&title=TGFzIFZlZ2FzOiBUd28gc2Nob29sIG9mZmljaWFscyBhcnJlc3RlZCBvbiBtZXRoIGNoYXJnZXM="; theSummaries[12] = "Triple-digit heat continues to bake Las Vegas"; theSiteLinks[12] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/triple-digit_heat_continues_to_bake_las_vegas/?link=aHR0cDovL3d3dy5sYXN2ZWdhc3N1bi5jb20vbmV3cy8yMDEwL3NlcC8wNS9ob3QtYW5kLWd1c3R5LXdlYXRoZXItdG9kYXktbGFzLXZlZ2FzLw==&title=VHJpcGxlLWRpZ2l0IGhlYXQgY29udGludWVzIHRvIGJha2UgTGFzIFZlZ2Fz"; theSummaries[13] = "Report ranks Nevada roads 15th best"; theSiteLinks[13] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/report_ranks_nevada_roads_15th_best/?link=aHR0cDovL3d3dy5yZ2ouY29tL2FydGljbGUvMjAxMDA5MDUvTkVXUzA3LzEwMDkwNTAwOC8xMzIxL05FV1MvUmVwb3J0LXJhbmtzLU5ldmFkYS1yb2Fkcy0xNXRoLWJlc3Qt&title=UmVwb3J0IHJhbmtzIE5ldmFkYSByb2FkcyAxNXRoIGJlc3Q="; theSummaries[14] = "Report ranks NV roads 15th best"; theSiteLinks[14] = "http://tickermyfeed.com/news.php/MHx8eWFob28=/report_ranks_nv_roads_15th_best/?link=aHR0cDovL2RhaWx5c3BhcmtzdHJpYnVuZS5jb20vcGFnZXMvZnVsbF9zdG9yeS9wdXNoP2FydGljbGUtUmVwb3J0K3JhbmtzK05WK3JvYWRzKzE1dGgrYmVzdCUyMCZpZD05Mzk2OTU3Jmluc3RhbmNlPXNlY29uZGFyeV9zdG9yaWVzX2xlZnRfY29sdW1u&title=UmVwb3J0IHJhbmtzIE5WIHJvYWRzIDE1dGggYmVzdA=="; 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('
'); document.write(''); document.write(''); document.write(''); document.write(''); document.write('| '); document.write(''); document.write(' |