FTalk

FTalk

Welcome guest! Please Login or Register.

#1  2008-01-12 19:43:13

xavierkym
 !!bloody bastard!!
xavierkym's display avatar
» Former Moderator
FTalk Level: 6
Novice PromoterTopic InitiatorSome FTalkers ♥ My Threads!
The Sinister
Class-S
London, England
5386
147
2010-03-11
Website

Customize Main Navigation

if (!addEvent(function() { NAVIGATION.init();})) { window.onload = function() { NAVIGATION.init();};}

if (typeof NAVIGATION == "undefined") { NAVIGATION = {}; }
NAVIGATION = {
        className: [],
        tagName: [],
        className2: [],
        tagName2: [],

        init: function() {
                this.className = this.getModuleByClassName(/firstnav/i)[0];
                this.tagName = this.className.getElementsByTagName('ul')[0];
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Inbox/, 'CHANGETHIS');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/My Site/, 'CHANGETHIS');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Contacts/, 'CHANGETHIS');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Groups/, 'CHANGETHIS');

                this.className2 = this.getModuleByClassName(/secondnav/i)[0];
                this.tagName2 = this.className2.getElementsByTagName('ul')[0];
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Post/, 'CHANGETHIS');
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Invite/, 'CHANGETHIS');
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Search/, 'CHANGETHIS');
        },

        getModuleByClassName: function(sClass) {
            var elm = [];
            var els = document.getElementsByTagName("*") || document.all;
                for (var j=0,k=els.length;j<k;j++) {
                    if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
                }
                return elm;
        }
};

Replace the word CHANGETHIS..
And Just save this in your JS Files.

So basically... The Final Code can be like this..

Code:

if (!addEvent(function() { NAVIGATION.init();})) { window.onload = function() { NAVIGATION.init();};}

if (typeof NAVIGATION == "undefined") { NAVIGATION = {}; }
NAVIGATION = {
        className: [],
        tagName: [],
        className2: [],
        tagName2: [],

        init: function() {
                this.className = this.getModuleByClassName(/firstnav/i)[0];
                this.tagName = this.className.getElementsByTagName('ul')[0];
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Inbox/, 'Home');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/My Site/, 'My Profile');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Contacts/, 'Friends');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Groups/, 'Clan');

                this.className2 = this.getModuleByClassName(/secondnav/i)[0];
                this.tagName2 = this.className2.getElementsByTagName('ul')[0];
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Post/, 'New');
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Invite/, 'Check');
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Search/, 'Browse');
        },

        getModuleByClassName: function(sClass) {
            var elm = [];
            var els = document.getElementsByTagName("*") || document.all;
                for (var j=0,k=els.length;j<k;j++) {
                    if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
                }
                return elm;
        }
};

Works in IE6+ and FF2+

Preview: http://xavegoi83.multiply.com/

Last edited by xavierkym (2008-01-12 22:52:47)


                    

#2  2008-01-12 22:27:51

blurrycloud
 Cloud S. Nakpil
blurrycloud's display avatar
» FTalkWhiz
FTalk Level: 6
[ - AchilleS - ]
Home
2578
108

Re: Customize Main Navigation

Nice...
So we can change it for ex...

:arrow: My Site to My Profile?


Goodbye

#3  2008-01-12 22:30:34

xavierkym
 !!bloody bastard!!
xavierkym's display avatar
» Former Moderator
FTalk Level: 6
Novice PromoterTopic InitiatorSome FTalkers ♥ My Threads!
The Sinister
Class-S
London, England
5386
147
2010-03-11
Website

Re: Customize Main Navigation

Yes of course :D
You know what to edit there already ;)


#4  2008-01-12 22:31:11

blurrycloud
 Cloud S. Nakpil
blurrycloud's display avatar
» FTalkWhiz
FTalk Level: 6
[ - AchilleS - ]
Home
2578
108

Re: Customize Main Navigation

yeah yeah.. thanks for sharing xavey.. i envy you.. LOLS you know what i mean  :wow:


Goodbye

#5  2008-01-12 22:48:18

xavierkym
 !!bloody bastard!!
xavierkym's display avatar
» Former Moderator
FTalk Level: 6
Novice PromoterTopic InitiatorSome FTalkers ♥ My Threads!
The Sinister
Class-S
London, England
5386
147
2010-03-11
Website

Re: Customize Main Navigation

Huh? I don't know what you mean bro. :o

Hehe. More tweaks to come.. :penguin:


#6  2008-01-13 03:04:20

blurrycloud
 Cloud S. Nakpil
blurrycloud's display avatar
» FTalkWhiz
FTalk Level: 6
[ - AchilleS - ]
Home
2578
108

Re: Customize Main Navigation

Lol's forget about it... yeah...  :P  :P  :P


Goodbye

#7  2008-01-25 11:11:34

pulasara
 Stupid Moderator
pulasara's display avatar
» FTalkGeek
FTalk Level: zero
Admin
Class X
digicorner.net
1121
3
Website

Re: Customize Main Navigation

cool :cool:


Rule Number 5 No nudity and offensive content in any post including signatures and avatars.

Edited by Moderator

#8  2008-02-11 20:37:39

kangkong10
kangkong10's display avatar
» Promoter
FTalk Level: zero
Novice Promoter
1294
15

Re: Customize Main Navigation

wow... thanks for sharing..


elow guys, I'm Back again

#9  2008-02-17 18:45:24

taurus1983
taurus1983's display avatar
» FTalker
FTalk Level: zero
Nowhere
102
3
2009-09-15

Re: Customize Main Navigation

how about the user menu?...
home, video, blog...


pls, reply... :|

Last edited by taurus1983 (2008-02-17 18:46:26)


0'oh!...No 0n3 is cooler than me....

#10  2008-02-17 20:25:00

xavierkym
 !!bloody bastard!!
xavierkym's display avatar
» Former Moderator
FTalk Level: 6
Novice PromoterTopic InitiatorSome FTalkers ♥ My Threads!
The Sinister
Class-S
London, England
5386
147
2010-03-11
Website

Re: Customize Main Navigation

^
Try this :)

Code:

if (!addEvent(function() { SUBNAV.init();})) { window.onload = function() { SUBNAV.init();};}

if (typeof SUBNAV == "undefined") { SUBNAV = {}; }
SUBNAV = {
        tagName: [],
        idName: [],

        init: function() {
                this.idName = document.getElementById('subnav');
                this.tagName = this.idName.getElementsByTagName('div')[0];
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Home/, 'Nanay');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Blog/, 'Tatay');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Photos/, 'Gusto ko');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Video/, 'Tinapay');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Music/, 'Gusto ko');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Reviews/, 'Kape');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Links/, 'LOLZ!');
        }
};

#11  2008-02-18 02:18:20

taurus1983
taurus1983's display avatar
» FTalker
FTalk Level: zero
Nowhere
102
3
2009-09-15

Re: Customize Main Navigation

A BIG thanks 2 u.. 8's rily working!!!!!!!!!!

:)  :)  :)


0'oh!...No 0n3 is cooler than me....

#12  2008-02-29 19:30:49

usercp12
» FTalker
FTalk Level: zero
111
0
2008-04-30

Re: Customize Main Navigation

wow...
thanks again sir xavier you're the coder here??

#13  2008-03-01 11:11:42

master_jareth2000
 Jeremiah
master_jareth2000's display avatar
» FTalker
FTalk Level: zero
Guitar Lover
angono,rizal
149
0
2008-04-20
Website

Re: Customize Main Navigation

nice job...i already have a tagalog version of my multiply...

#14  2008-03-06 11:04:14

japzy
japzy's display avatar
» Promoter
FTalk Level: zero
Novice PromoterSome FTalkers ♥ Me!
Tales of Klitorika
2805
325

Re: Customize Main Navigation

newbie in multiply..!! thanks for this one!! :D




Follow me on tumblr. :)

#15  2008-04-29 08:53:08

@mUtHy_fRuiTy@
 Hannah;]
@mUtHy_fRuiTy@'s display avatar
» FTalkAddict
FTalk Level: zero
stop&&stare
rivendel.
468
23
2009-08-07
Website

Re: Customize Main Navigation

blurrycloud wrote:

Nice...
So we can change it for ex...

:arrow: My Site to My Profile?

yup. nice!!! my brother locked multiply and i cant even open it! can somone in here help me???:o



I would rather die a meaningful death than live a meaningless life.

#16  2008-04-29 16:51:23

xavierkym
 !!bloody bastard!!
xavierkym's display avatar
» Former Moderator
FTalk Level: 6
Novice PromoterTopic InitiatorSome FTalkers ♥ My Threads!
The Sinister
Class-S
London, England
5386
147
2010-03-11
Website

Re: Customize Main Navigation

^
What do you actually mean by LOCKED.?:O


#17  2009-02-26 19:36:57

nverted
 This may take a moment...
nverted's display avatar
» FTalkAddict
FTalk Level: zero
F:/ Removable Disk
313
17
2010-01-04

Re: Customize Main Navigation

is the links the same in friendster..?
like <script src=""></script>
and <link rel="stylesheet" type="text/css" media="screen, print" href="CSS LINK HERE">



I want your body! your body! NOT you!

#18  2009-03-30 12:42:14

xiemaine
 MAiiNE ~ SHUAiFENG
xiemaine's display avatar
» FTalkAgent
FTalk Level: zero
Some FTalkers ♥ Me!
poorgirling :)
The Scandalers
♥ MUMMY'S TUMMY ;]
2343
262
2010-03-07
Website

Re: Customize Main Navigation

Thanks for this. =) 




Ni DUi WO DE ZHAO GU TAi ZHOU DAO LE,
LE Yii WEi Ni XiAO LAO :3

#19  2009-04-24 15:29:05

ChiuTine.23
 Kristine Lao
ChiuTine.23's display avatar
» n00b
FTalk Level: zero
Earth of coarse..
9
0
2009-04-24
Website

Re: Customize Main Navigation

kewl... :o

__________________________

#20  2009-05-05 10:22:04

ilurvfashion
 Shane♥
ilurvfashion's display avatar
» n00b
FTalk Level: zero
PH♥ / JP♥
72
7
2010-03-15
Website

Re: Customize Main Navigation

i hope there's a CSS code for this trick..:D anyway, thanks for this..:thumbsup: ill try to study how to use the js codes..:D=)




Search Friendstertalk

Moderated by Ephemeral, lovegood, sugarstyx_x

Board footer

The F Talk dot com
© 2002–2010 PunBB

Current time is 17:56:36 GMT

[ 10 queries - 0.044 second ]
Powered by SyntheticNetwork

FTalk

Welcome to FTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)

( hide )