[quote=CoWoCuPu][/quote]
coba pake ini bro
[spoiler]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 = "<a href=\"#\" onClick=\"show_hide('content_0'); return false\"><div >"+pageOwnerFName+"</div></a>";
show_hide('content_0');
this.head = this.getModuleByClassName(/photos/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<div> "+pageOwnerFName+" Photo's</div>";
this.head = this.getModuleByClassName(/blogs/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<div> "+pageOwnerFName+" Blog</div>";
this.head = this.getModuleByClassName(/reviews/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<div> "+pageOwnerFName+" Review's</div>";
this.head = this.getModuleByClassName(/moreabout/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div>More About "+pageOwnerFName+"</div></a>";
show_hide('content_6');
this.head = this.getModuleByClassName(/publiccomments/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_18'); return false\"><div> Testimonials and Comments for "+pageOwnerFName+"</div></a>";
show_hide('content_18');
this.head = this.getModuleByClassName(/scrapbook/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<div> "+pageOwnerFName+" MEDIA BOX</div>";
this.head = this.getModuleByClassName(/friends/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div>"+pageOwnerFName+"\'s Friends</div></a>";
show_hide('content_2');
this.head = this.getModuleByClassName(/fanof/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<div> "+pageOwnerFName+" FAN Of</div>";
this.head = this.getModuleByClassName(/groups/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<div> "+pageOwnerFName+" GROUPS</div>";
},
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;
}
};
function show_hide(the_box) {
if (document.getElementById(the_box)) {
if (document.getElementById(the_box).style.display == 'none') {
document.getElementById(the_box).style.display = 'block';
}
else {
document.getElementById(the_box).style.display = 'none';
}
}
}
[/spoiler]
ganti aja smua kode min maxnya dengan ntuh
and tambahin di CSSnya bro
[quote]#meettrail{display:none;background:transparent;}[/quote]
[b]ovars[/b]
dah ubah jadi .htm ga bro
trus buat folder , nah dalam folder ituh file welcome pagenya disave
Last edited by boim (2008-08-01 11:55:23)