Advertise Here

Author Topic: [Code] Change "Total Time Logged In:" Text  (Read 1583 times)

0 Members and 1 Guest are viewing this topic.

Offline DzinestaR

  • Style Designer
  • *
  • Posts: 91
    • View Profile
    • SMF Designs

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
[Code] Change "Total Time Logged In:" Text
« on: August 31, 2009, 06:47:30 pm »
Code Demo!

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: [Select]
<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: [Select]
Your New Text Here!

To your desired text.

Enjoy.

-DzinestaR
« Last Edit: September 01, 2009, 04:19:56 am by DzinestaR »

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Change "Total Time Logged In:" Text
« Reply #1 on: August 31, 2009, 07:59:16 pm »
it works in Firefox too..      Dziner you really should test in other browsers to make sure a code works before posting it  ;)

Offline slayer766

  • SMF For Free Full Member
  • *
  • Posts: 212
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Change "Total Time Logged In:" Text
« Reply #2 on: August 31, 2009, 09:19:38 pm »
It does work in all browsers(Should, if not you must be using one heck of an old browser), Firefox is what I wrote it in...and jeez I didn't even get a response back saying thanks or anything...

Offline Jish

  • SMF For Free Member
  • *
  • Posts: 71
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Code] Change "Total Time Logged In:" Text
« Reply #3 on: September 01, 2009, 12:32:55 am »
Good work:)


www.rakdra.com Join today! New growing rsps

 

Related Topics

  Subject / Started by Replies Last post
21 Replies
4003 Views
Last post February 20, 2009, 06:15:07 pm
by Andrew
4 Replies
2515 Views
Last post June 15, 2007, 09:41:07 am
by Joris
11 Replies
4324 Views
Last post June 23, 2007, 12:35:24 am
by Agent Moose
10 Replies
2557 Views
Last post April 01, 2008, 08:23:03 am
by Vice
3 Replies
2127 Views
Last post July 27, 2007, 05:10:31 pm
by doggiedoo86