Pages: 1..123456789101112..12

  2007-12-08 09:59:49

Lordheinz
» FTalkElite
FTalk Level: zero
4377
0
1969-12-31

Re: the codes are possibly obselete [spoiler][quote][b][color=red]For educational purposes only.[/color][/b][/quote] An alternative code for customize header names I made a [b]simple code[/b] & now the co

[quote=wongudik]^ so haw show up the code again? :question: :cry: im so confuse..[/quote] [color=red]update those bold part:[/color] [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([b]/controlpanel/i[/b])[0].getElementsByTagName("h1")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/photos/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/blogs/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/reviews/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/moreabout/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/publiccomments/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/scrapbook/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/friends/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/fanof/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; this.head = this.getModuleByClassName([b]/groups/i[/b])[0].getElementsByTagName("h2")[0]; this.head.innerHTML = "YOUR TITLE NAME"; }, 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]

Pages: 1..123456789101112..12

Board footer

© 2024 F Talk

Current time is 18:53

[ 12 queries - 0.019 second ]
Privacy Policy