Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
<script type="text/Javascript">
// Switch-it

var aTD = document.getElementsByTagName("td");
function switchIt(w1,w2){
for(a=0;a<aTD.length;a++)
if(aTD[a].innerHTML.match(w1))
while(aTD[a].innerHTML.match(w1))
aTD[a].innerHTML = aTD[a].innerHTML.replace(w1,w2);
}

// EDIT HERE
// SYNTAX: switchIt("Word to Find","Replacement word");

switchIt("guest","visitor");
switchIt("member","registered user");
</script>



Global, main, or board footers. Be careful with what you switch, as it may switch words in users posts then. ;) It is also case sensitive.

If you want to switch something to an image, for the replacement use this:
<img src='URL OF IMG' alt='' />


Last Edit: Jan 19, 2007 1:04:59 GMT by Chris

newBookmarkLockedFalling