Log In · Register

 
change "eprops"
rockinrobin725
post Jul 17 2006, 02:57 PM
Post #1


Newbie
*

Group: Member
Posts: 3
Joined: Jul 2006
Member No: 433,015



hello.. does anyone know how to change "2 eprops" to something like "2 shots of tequila" or like "2 shots of whiskey" or how about "2 thumbs up"?
 
 
Start new topic
Replies
*digital.fragrance*
post Jul 17 2006, 03:09 PM
Post #2





Guest






CODE
<script type="text/javascript">
function replaceWords()
{
    // ***add the words or fragments you wish to replace below
    var oldWords = new Array(
         "Next 5",
         "comment",
         "Comment",
         "comments",
         "Comments",
         "eProp",
         "eprop",
         "eProps",
         "email it",
         "Post a Comment",
         "Read Comments",
         ";-)",
         "Comment Only",
         "Post Comments",
         "2 eProps",
         "1 eProp",
         "Back to AznGrl's Xanga Site!",
         "perfumess");
        
    // *** add the replacing words or fragments below
    var newWords = new Array(
         "lo0k in da past",
         "jewel",
         "jewel",
         "jewels",
         "jewels",
         "perfume",
         "perfumes",
         "perfumes",
         "talk to me",
         "give a jewel",
         "look at jewels",
         "~.^",
         "just a jewel",
         "Give A Jewel",
         "2 Perfumes",
         "1 Perfume",
         "to aznqrL's xanqa~!",
         "perfumes");

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


Of course, change them to what you want.
 

Posts in this topic
rockinrobin725   change "eprops"   Jul 17 2006, 02:57 PM
digital.fragrance   CODE<script type="text/javascript"...   Jul 17 2006, 03:09 PM
rockinrobin725   thanks for your help! =)   Jul 19 2006, 07:27 AM
digital.fragrance   no prob   Jul 19 2006, 08:54 AM


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