Log In · Register

 
Help with the EasterEgg/replace any text script, help
illyria
post Aug 12 2005, 01:43 PM
Post #1


Senior Member
****

Group: Member
Posts: 123
Joined: Apr 2004
Member No: 13,684



can you use this script to replace a username's name on your site?? like for example your friends xanga name is "lillove101" but you want it to show up as "mary" when i try to alter the code to do this:



it doesn't work... could someone please help me or let me know if it's even possible to replace someone's username to show up as whatever you want on your own xanga. please email me at kearneyweard@yahoo.com if you can answer my questions or help...
 
 
Start new topic
Replies
Kenado
post Aug 12 2005, 01:53 PM
Post #2


Senior Member
*******

Group: Member
Posts: 3,551
Joined: Feb 2005
Member No: 102,857



Try using this code
CODE
<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 (/USER NAME/i)) links[l].innerHTML = str.replace (/USER NAME/i, "THE NAME YOU WANT IT TO BE");
else if (str.match (/USER NAME/i)) links[l].innerHTML = str.replace (/USER NAME/i, "THE NAME YOU WANT IT TO BE");
else if (str.match (/USER NAME/i)) links[l].innerHTML = str.replace (/USER NAME/i, "THE NAME YOU WANT IT TO BE");
else if (str.match (/USER NAME/i)) links[l].innerHTML = str.replace (/USER NAME/i, "THE NAME YOU WANT IT TO BE");
else if (str.match (/USER NAME/i)) links[l].innerHTML = str.replace (/USER NAME/i, "THE NAME YOU WANT IT TO BE");
}//-->
</script>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: