View Full Version : i need help with this code


PrfctGrkChick
07-18-2003, 07:21 PM
hey well im tryin to use this code on my xanga so that instead of sayin epropz it could say kissez for example. but when i use it for sum reason it doesnt work...could sumwun plz help me figure out wuts wrong...here's the code..thnx


script language="javascript">
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l <links.length; l++) {
str = links[l].innerHTML;
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/smileys/i)) links[l].innerHTML = str.replace (/smileys/i, "smile");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "write what you want here");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "write what you want here");
}

var paras = document.getElementsByTagName ('p');
for (var p = 0; p <paras.length; p++) {
str = paras[p].innerHTML;
if (str.match (/smileys/gi)) paras[p].innerHTML = str.replace (/smileys/gi, "smile");
}
//-->
</script>

xXgAnGsTuHpNaXx
07-18-2003, 07:42 PM
i have da same problem to...well sortuh ...i juz don't kno where to put da code at since i don't have premium but nywayz....for example.....it sayz email(sumttin lyke dat) den replacement words...you put wat word you want so dat way it won't say email but tha word u want it to say.....i don 't kno if datz wat u mean so yea.if not den sorry.-_-...hey do u kno where to put da code for xanga?

PrfctGrkChick
07-18-2003, 07:51 PM
yeh i noe wut u mean..but it still doesnt work...but anyway i was told that the code should be put in the website stats box..

psychochick
07-18-2003, 10:24 PM
Whoah, do you 2 REALLY like to use IM talk or something? I only understood half of what you said, and I am really up on IM talk!

lilvtdreama
07-24-2003, 09:40 AM
Yes you guys are supposed to put them in the "website starts" box!! ~~if theys till don't work, tell me ~~ i got it on my xanga don't referr people to go to your xanga, it's also kind of advertising too. and PLEASE use some kind of proper english so that people are able to understand ~ mod