Advertise Here

Author Topic: [Code] Change "Total Time Logged In:" Text  (Read 2216 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
35 Replies
9553 Views
Last post February 02, 2010, 08:22:56 am
by Agent Moose
6 Replies
2759 Views
Last post January 26, 2009, 03:25:41 pm
by Agent Moose
21 Replies
4875 Views
Last post February 20, 2009, 06:15:07 pm
by Andrew
4 Replies
3089 Views
Last post June 15, 2007, 09:41:07 am
by Joris
3 Replies
3231 Views
Last post July 27, 2007, 05:10:31 pm
by doggiedoo86