Log In · Register

 
adding pic in word replacer
LatinaLady
post Jun 23 2004, 04:38 PM
Post #1


Look its...
*******

Group: Official Member
Posts: 5,817
Joined: Feb 2004
Member No: 4,767



i am using the word replacer script
this is the one i have
QUOTE
<script type="text/javascript">

//Provided By http://www.anti_fukin_social//
function replaceWords()
{
   // ***add the words or fragments you wish to replace below
   var oldWords = new Array(
       "Next 5",
       "Previous 5",
       "eprops",
       "email it",
       "comments");

    // *** add the replacing words or fragments below
   var newWords = new Array(
        "Past Events",
        "Future Events",
        "Boop Boop",
        "Send Love",
        "Beep Boop");

   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();
</script>


what can i add a pic instead of words. for exapme instead of eprops how can it be a pic instead.
 

Posts in this topic
LatinaLady   adding pic in word replacer   Jun 23 2004, 04:38 PM


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