April 20, 2024, 02:50:30 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Change Info Center Text

Pages: [1]   Go Down
  Print  
Author Topic: Change Info Center Text  (Read 377 times)
0 Members and 1 Guest are viewing this topic.
Vitality
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 154



View Profile
Badges: (View All)
« on: October 22, 2008, 08:58:31 pm »

My first SMF code, something simple to get used to the new classes and such.
This replaces the text that says "Info Center" on the header above your stats.

Footers
Code:
<script>
//Change Info Center Text

newtext = "NEW_TEXT"

var a = document.getElementsByTagName('div')
for(i=0;i<a.length;i++){
if(a[i].className == "catbg" && a[i].innerHTML.match(/Info Center/i)){
a[i].innerHTML = a[i].innerHTML.replace("Info Center",newtext);
}}
</script>
Report Spam   Logged


CODE

Share on Facebook Share on Twitter

Mojobojo82
MVP
MVP
Offline Offline

Gender: Male
Posts: 838


View Profile
Badges: (View All)
« Reply #1 on: June 22, 2009, 04:40:45 am »

Nice code.
Isn't the Info Center the Forum Statics?
Report Spam   Logged






Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy