Revolution X

Coding Community => Coding Snippets => Topic started by: DzinestaR on September 07, 2009, 10:13:13 pm



Title: [Code] Change "Total time logged in:" Text
Post by: DzinestaR on September 07, 2009, 10:13:13 pm
Forum Url: http://SMFDesigns.smfforfree3.com

Code Demo! (http://dzinetest11.smfforfree3.com/)

This code will change the "Total time logged in:" Text to any text you desire, Works in all Browsers slayer766 helped alot with the making of this code.

Footers:

Code:
<script type="text/javascript">
var text = "Your New Text Goes Here!";
var a = document.getElementsByTagName("span");
var b = a.length;
while(b--){
    if(a[b].className == "middletext" && a[b].innerHTML.match("Total time logged in:")){
        a[b].innerHTML=a[b].innerHTML.replace("Total time logged in:",text);
    }
}
</script>



Change
Code:
Your New Text Here!


To your desired text.

Enjoy.

-DzinestaR