Simple Machine Codes
November 23, 2009, 12:05:49 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Affiliates Code Index Staff List Calendar Members Login Register  

Change Tab Text V2


Pages: [1]   Go Down
  Print  
Author Topic: Change Tab Text V2  (Read 227 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,664



View Profile WWW
« on: July 27, 2007, 08:53:52 pm »

Code:
<script>
function change_tab_text() {
//Created by Agent Moose (smcodes.smfforfree3.com)
$(function() {
var tab = new Array()
tab[tab.length] = ["Home","Blah"]
tab[tab.length] = ["TAB TEXT","YOUR TEXT HERE"]

for(f=0;f<tab.length;f++){
$(".maintab_back a , .maintab_active_back a").each(function() {
if(this.innerHTML.match(tab[f][0])){this.innerHTML = this.innerHTML.replace(tab[f][0],tab[f][1]);};
});};});}
change_tab_text();
</script>

This changes the Tab Text to your own text.  Now, this code will change the tab text when your on that page, or not.

TAB TEXT = The text that you want to change
YOUR TEXT HERE = The text the tab will change too.
« Last Edit: July 27, 2007, 08:58:59 pm by Agent Moose » Report Spam   Logged

LaundryLady
Geriatric Goddess
Global Moderator

Offline Offline

Gender: Female
Posts: 290


I'm watching, I have a sense of humor: Guess Who


View Profile
« Reply #1 on: July 28, 2007, 08:02:58 am »

Looks good, put it on the test site.
Report Spam   Logged

legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #2 on: April 04, 2008, 04:48:41 am »

yea very nice love this code Tongue

legend 1234
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 © 2006, Simple Machines LLC
ServerBeach Coupon