View Full Version : Replace words & dates


marrrie
11-15-2005, 03:25 AM
<script type="text/javascript">
//
// ©2003 EasterEgg, http://www.xanga.com/easteregg

function replaceWords()
{
` `// ***add the words or fragments you wish to replace below
` `var oldWords = new Array(
"Subscriptions",
"Publish Comments",
"add eProps",
"eprop",
"eProps",
"add comments",
"comment",
"comments",
"view entire profile",
"sign my guestbook",
"My Blogrings",
"Posting Calendar",
"Get Involved!",
"sign out",
"Name:",
"Birthday:",
"Gender:",
"State:",
"Country:",
"Interests:",
"Expertise:",
"Website",
"Email",
"Member since:"
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday",);

` `// *** add the replacing words or fragments below
` `var newWords = new Array(
"OH EE OH I LOOK JUST LIKE BUDDY HOLLY",
"Publish broken names",
"Drop hearts",
"Dropped heart",
"Dropped hearts",
"Break names",
"Broken name",
"Broken names",
"view entire profile",
"guestbook",
"OH OH & YOU'RE MARY TYLER MOORE",
"TRAGIC x CHAOTIC x APOCALYPSE",
"Get Involved!",
"sign out",
"<center> ",
"",
"",
"Crab addict? Silly kid from",
"Arrogant? Oh yes, she's from the",
" ",
" ",
"MYSPACE, NOT YOURSPACE.",
"Email",
"Sleeping for the wrong team since:"
"Malicious Mondays",
"Tragic Tuesdays",
"Wasteful Wednesdays",
"Torrential Thursdays",
"Flawless Fridays",
"Souless Saturdays",
"Scarlet Sundays",);

` `allTableData = document.getElementsByTagName('td');
` `allTableHeaders = document.getElementsByTagName('th');
` ` ` `
` `var collections = new Array(allTableData,allTableHeaders);
` `//document.write.blogring.net
` `for (var k = 0; k < collections.length; ++k )
` `{
` ` ` `for (var i = 0; i < collections[k].length; ++i )
` ` ` `{ `
` ` ` ` ` `if (collections[k][i].innerHTML.indexOf('TABLE') == -1)
` ` ` ` ` `{
` ` ` ` ` ` ` `for ( var n = 0; n < oldWords.length; ++n )
` ` ` ` ` ` ` `{
` ` ` ` ` ` ` ` ` `var indx = collections[k][i].innerHTML.indexOf(oldWords[n])
` ` ` ` ` ` ` ` ` `while (indx != -1)
` ` ` ` ` ` ` ` ` `{ `
` ` ` ` ` ` ` ` ` ` ` `var replacement = '';
//document.write.blogring.net
` ` ` ` ` ` ` ` ` ` ` `indx = collections[k][i].innerHTML.indexOf(oldWords[n]);
` ` ` ` ` ` ` ` ` ` ` `replacement = collections[k][i].innerHTML.replace(oldWords[n], newWords[n]);
` ` ` ` ` ` ` ` ` ` ` `collections[k][i].innerHTML = replacement;
` ` ` ` ` ` ` ` ` ` ` `break; ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` `}
` ` ` ` ` ` ` `}
` ` ` ` ` `}
` ` ` `}
` `}
}
replaceWords();
</script>


i have no idea whats wrong with it. if you can, please, please change it for me. thank you very much. :)

Ebil_Master
11-15-2005, 11:23 AM
did you place it in the website stats? i cant see anything else wrong with it

marrrie
11-15-2005, 09:10 PM
yeah, i did. i have no idea whats going on! please help <3