Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
  
pmwww | Switch-It (17th Feb 08 at 7:41pm UTC) | | Description: This code simply replaces any one word/phrase with any other word/phrase. This is good when needing to replace things longer than the censored words list will allow.
Placement: Any footer, depending on what it's needed for.
How To Use: Simply repeat the switchIt() line for each thing that needs replacing.
 Code: - <script type="text/javascript">
- <!--
- /* Switch-It by Cr0w */
- function switchIt(word,word2){
- var f = document.getElementsByTagName("font");
- for(i=0;i<f.length;i++){
- f[i].innerHTML = f[i].innerHTML.replace(word,word2);
- }
- }
-
- switchIt("WORD TO REPLACE","REPLACEMENT");
- //-->
- </script>
| |
rroll.to— Shorten a link, rickroll your friends. |
|