[/quote]
please don't double post...
anyways,
paste that code to ur js file..
umhhh...were can i find that js code in my friendster?!
i dont know that...i'm a newbie...
i only know "css"
umhhh...were can i find that js code in my friendster?!
i dont know that...i'm a newbie...
i only know "css"
[/quote]
[b]visit this post of micky[/b][url]http://theftalk.com/t15088-Compiling-codes-file-newbies.html[/url]
Use onload event the code to be execute for friends, fanof or groups
[quote]if ( ! attachOnLoadHandler(function () { cHeaders();})) window.onload = function () { cHeaders();};
function cHeaders() {
REPLACEIT.init();
}
if (typeof REPLACEIT == "undefined") { REPLACEIT = {}; }
REPLACEIT = {
head: [],
init: function() {
this.head = this.getModuleByClassName(/controlpanel/i)[0].getElementsByTagName("h1")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/photos/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/blogs/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/reviews/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/moreabout/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/publiccomments/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/scrapbook/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/friends/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/fanof/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
this.head = this.getModuleByClassName(/groups/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "[b]YOUR TITLE NAME[/b]";
},
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;
}
};[/quote]
save into js extension[/quote]
The old script (which used to work for me) as well as this new updated one doesnt work anymore. I tried to delete the ones I do not use (for example, the blogs and reviews), but still only the control panel header shows.
Check my post regarding compiling js in one file, preferably the number five...you can see the personalized headers & blinking...that is working fine...You can remove the blinking if you just want to replace your header names without blinking.
I'll add the rest later...
Last edited by mickyriora (2007-12-02 14:10:01)
and for example
[quote]this.head = this.getModuleByClassName(/publiccomments/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "Hey.."+pageViewerFName+"..Drop a Comment ya..!";[/quote]
Check my post regarding compiling js in one file, preferably the number five...you can see the personalized headers & blinking...that is working fine...You can remove the blinking if you just want to replace your header names without blinking.
I'll add the rest later...[/quote]
can you give me the linK?
yeah i was away for awhile but my very very old linker still works!
although some of my scripts dont work anymore.
i dont even know where to start, feels like i've forgotten how to edit scripts lol
Last edited by frolickfriendster (2007-12-03 23:05:51)
Last edited by frolickfriendster (2007-12-03 23:36:16)
Like I said, I inserted the replace header names in guide number 5
haha...sis, so I guess you haven't got intouch for quite awhile which is why you haven't updated your div id's...and yeah, marfillaster makes use of new addbox function now...
Last edited by mickyriora (2007-12-03 23:39:47)