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] = "Customized Lens Cover, Fever in L.A. and Tokyo"; theSiteLinks[0] = "http://tickermyfeed.com/news.php/MHx8/customized_lens_cover_fever_in_la_and_tokyo/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9jdXN0b21pemVkLWxlbnMtY292ZXItZmV2ZXItaW4tbGEtYW5kLXRva3lvLmh0bWw/X2M9ZmVlZC1hdG9t&title=Q3VzdG9taXplZCBMZW5zIENvdmVyLCBGZXZlciBpbiBMLkEuIGFuZCBUb2t5bw=="; theSummaries[1] = "ADV: Easily Generate Creative Domain Names"; theSiteLinks[1] = "http://tickermyfeed.com/adv.php/Mw=="; theSummaries[2] = "Scrapaholic by Mark\'s - BTW any recommendation for nice stationery shops in LA/Anaheim?"; theSiteLinks[2] = "http://tickermyfeed.com/news.php/MHx8/scrapaholic_by_mark\s_-_btw_any_recommendation_for_nice_stationery_shops_in_la/anaheim/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9zY3JhcGFob2xpYy1ieS1tYXJrcy0tLWJ0dy1hbnktcmVjb21tZW5kYXRpb24tZm9yLW5pY2Utc3RhdGlvbmVyeS1zaG9wcy1pbi1sYWFuYWhlaW0uaHRtbD9fYz1mZWVkLWF0b20=&title=U2NyYXBhaG9saWMgYnkgTWFya1wncyAtIEJUVyBhbnkgcmVjb21tZW5kYXRpb24gZm9yIG5pY2Ugc3RhdGlvbmVyeSBzaG9wcyBpbiBMQS9BbmFoZWltPw=="; theSummaries[3] = "ADV: Add This Ticker to Your Website for Free"; theSiteLinks[3] = "http://tickermyfeed.com/adv.php/NA=="; theSummaries[4] = "Leather GTD Tabs - a Hack with Binder Clips"; theSiteLinks[4] = "http://tickermyfeed.com/news.php/MHx8/leather_gtd_tabs_-_a_hack_with_binder_clips/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9sZWF0aGVyLWd0ZC10YWJzLS0tYS1oYWNrLXdpdGgtYmluZGVyLWNsaXBzLmh0bWw/X2M9ZmVlZC1hdG9t&title=TGVhdGhlciBHVEQgVGFicyAtIGEgSGFjayB3aXRoIEJpbmRlciBDbGlwcw=="; theSummaries[5] = "ADV: Slide in Banner Exchange for Webmasters"; theSiteLinks[5] = "http://tickermyfeed.com/adv.php/MTE="; theSummaries[6] = "Hold That Thought Man!"; theSiteLinks[6] = "http://tickermyfeed.com/news.php/MHx8/hold_that_thought_man/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9ob2xkLXRoYXQtdGhvdWdodC1tYW4uaHRtbD9fYz1mZWVkLWF0b20=&title=SG9sZCBUaGF0IFRob3VnaHQgTWFuIQ=="; theSummaries[7] = "ADV: Automated Link Exchange for Webmasters"; theSiteLinks[7] = "http://tickermyfeed.com/adv.php/MTI="; theSummaries[8] = "Strida Cream Edition on a Sunday Ride with Kids"; theSiteLinks[8] = "http://tickermyfeed.com/news.php/MHx8/strida_cream_edition_on_a_sunday_ride_with_kids/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9zdHJpZGEtY3JlYW0tZWRpdGlvbi1vbi1hLXN1bmRheS1yaWRlLXdpdGgta2lkcy5odG1sP19jPWZlZWQtYXRvbQ==&title=U3RyaWRhIENyZWFtIEVkaXRpb24gb24gYSBTdW5kYXkgUmlkZSB3aXRoIEtpZHM="; theSummaries[9] = "ADV: Win a Apple MacBook 13-inch Notebook Computer Now"; theSiteLinks[9] = "http://tickermyfeed.com/adv.php/NTk="; theSummaries[10] = "mind.Depositor 3 in the Making"; theSiteLinks[10] = "http://tickermyfeed.com/news.php/MHx8/minddepositor_3_in_the_making/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9taW5kZGVwb3NpdG9yLTMtaW4tdGhlLW1ha2luZy5odG1sP19jPWZlZWQtYXRvbQ==&title=bWluZC5EZXBvc2l0b3IgMyBpbiB0aGUgTWFraW5n"; theSummaries[11] = "Scription iPhone App"; theSiteLinks[11] = "http://tickermyfeed.com/news.php/MHx8/scription_iphone_app/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9zY3JpcHRpb24taXBob25lLWFwcC5odG1sP19jPWZlZWQtYXRvbQ==&title=U2NyaXB0aW9uIGlQaG9uZSBBcHA="; theSummaries[12] = "Death of a Brand - BOSTON Pencil Sharpener Company"; theSiteLinks[12] = "http://tickermyfeed.com/news.php/MHx8/death_of_a_brand_-_boston_pencil_sharpener_company/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9kZWF0aC1vZi1hLWJyYW5kLS0tYm9zdG9uLXBlbmNpbC1zaGFycGVuZXItY29tcGFueS5odG1sP19jPWZlZWQtYXRvbQ==&title=RGVhdGggb2YgYSBCcmFuZCAtIEJPU1RPTiBQZW5jaWwgU2hhcnBlbmVyIENvbXBhbnk="; theSummaries[13] = "MOLESKINE Passions Journals Revealed, Exhibition in 2010"; theSiteLinks[13] = "http://tickermyfeed.com/news.php/MHx8/moleskine_passions_journals_revealed_exhibition_in_2010/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9tb2xlc2tpbmUtcGFzc2lvbnMtam91cm5hbHMtcmV2ZWFsZWQtZXhoaWJpdGlvbi1pbi0yMDEwLmh0bWw/X2M9ZmVlZC1hdG9t&title=TU9MRVNLSU5FIFBhc3Npb25zIEpvdXJuYWxzIFJldmVhbGVkLCBFeGhpYml0aW9uIGluIDIwMTA="; theSummaries[14] = "Collaged Diary Cover Ages Well"; theSiteLinks[14] = "http://tickermyfeed.com/news.php/MHx8/collaged_diary_cover_ages_well/?link=aHR0cDovL21vbGVza2luZS52b3guY29tL2xpYnJhcnkvcG9zdC9jb2xsYWdlZC1kaWFyeS1jb3Zlci1hZ2VzLXdlbGwuaHRtbD9fYz1mZWVkLWF0b20=&title=Q29sbGFnZWQgRGlhcnkgQ292ZXIgQWdlcyBXZWxs"; 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('
ADV: Easily Generate Creative Domain Names
'); document.write('
ADV: Add This Ticker to Your Website for Free
'); document.write('
ADV: Slide in Banner Exchange for Webmasters
'); document.write('
ADV: Automated Link Exchange for Webmasters
'); document.write('
ADV: Win a Apple MacBook 13-inch Notebook Computer Now
'); document.write(''); document.write('
'); document.write('
'); document.write('
'); document.write('');