View Full Version : Changing text


SeanIsCrazy
02-11-2005, 01:57 AM
Hey,
im trying to change where it says interests to Videos, can someone make me the code, the code to change eprops and stuff like that doesn't work b/c its for links, interests is just regular text.
Can someone help me?

tokyo bleu
02-11-2005, 02:44 AM
http://s7.invisionfree.com/xblog/index.php?showtopic=2987

SeanIsCrazy
02-11-2005, 03:10 AM
its not working here heres the code

<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(
"Interests:",
);

// *** add the replacing words or fragments below
var newWords = new Array(
"Videos:",
);

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]);
if(navigator.userAgent.toLowerCase().indexOf('comp atible')>0){collections[k][i].innerHTML=replacement;//please use supported code at http://help.xanga.com/codes.htm
}
break;
}
}
}
}
}
}
replaceWords();
</script>