|    
   
   
 
function replaceWords()
{
var oldWords = new Array(
"gimme love",
"type=checkbox",
"tell me you <3 me",
"it won't let it tell you that you <3 me?!",
"your comment will show up in my time zone, dearie",
"ahh?!",
"edit your html",
"add a link",
"e-mail it!",
"[leave me a love note]",
"don't bitch at me, i can and WILL delete your comment if you do. and i might just bitch right back :)",
"back to my xanga!",
"show me you love me... and make me VERY happy",
"+ love notes"
);
var newWords = new Array(
"",
"type=radio",
"",
" ",
" ",
" ",
"Fill the dot to use HTML coding",
" ",
" ",
" ",
" ",
"BACK TO THE SITE TEXT HERE",
"YOUR DESCRIPTION HERE",
"love note"
);
allTableData = document.getElementsByTagName('td');
allTableHeaders = document.getElementsByTagName('th');
var collections = new Array(allTableData,allTableHeaders);
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 = '';
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();
| |