Pages: 1..123456789101112

  2008-02-14 00:24:26

arvin192000
» n00b
FTalk Level: zero
42
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

can u take a look at this if it is correct" [quote]if (typeof REPLACEIT == "undefined") { REPLACEIT = {}; } REPLACEIT = { head: [], //Photo Gallery Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/photos/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "mY Photo Slide"; init: function() { }, init: function() { //Reviews Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/reviews/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "mY favorites"; }, init: function() { //Moreabout Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/moreabout/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "my birhtcertificate"; }, init: function() { //Publiccomments Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/publiccomments/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "others say:"; }, init: function() { //Media Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/scrapbook/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "my favorite musics"; }, init: function() { //Friends Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/friends/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "people of the universe"; }, init: function() { //Fanof Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/fanof/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "mY admired links"; }, init: function() { //Groups Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/groups/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "my troops"; }, init: function() { //Blogs Box Header REPLACEIT.head = REPLACEIT.getModuleByClassName(/blogs/i)[0].getElementsByTagName("h2")[0]; REPLACEIT.head.innerHTML = "my composition"; }, 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; } };REPLACEIT.init();[/quote]

Pages: 1..123456789101112

Board footer

© 2024 F Talk

Current time is 23:54

[ 12 queries - 0.011 second ]
Privacy Policy