[quote=Co_don SanAdH]kalo buat CSSnya saya kira ga akan ada masalah mas
tinggal yg di JSnya ajah
yg agak sedikit ribet
btw emang make mini/maxi mana mas? bang nopz kah? apa yg lain?[/quote]
dah ketemu bro border di CSS gw yg lupa dikasi transparan border common box na
gw pake fungsi change header kek gini bro jd smuanya disimpan di C ga ada di B tp minimaxi nya pake fungsi show hide na bang nopz
[spoiler]
//*-------------------------Change Header---------------------------*//
/* -----------------------------------------------------------TEMPORARY MAINTENANCE---------------------------------------------------------*/
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 title=\"header=[CLICK HERE TO NAVIGATE YOU] body=[<img src='http://i176.photobucket.com/albums/w189/chaosofazn/ItachiUchiha.gif' style='width:164px;height:35px;'>]\">CONTROL PANEL</div></a>";
show_hide("content_0");
this.head = this.getModuleByClassName(/photos/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_1'); return false\"><div title=\"header=[CLICK HERE TO VIEW MY PHOTO'S] body=[<img src='http://theftalk.com/pix/logo_white.gif' style='width:164px;height:35px;'>]\">PHOTO'S</div></a>";
show_hide("content_1");
this.head = this.getModuleByClassName(/blogs/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_13'); return false\"><div title=\"header=[CLICK HERE TO VIEW MY BLOG] body=[<img src='http://theftalk.com/pix/logo_white.gif' style='width:164px;height:35px;'>]\">BLOG'S</div></a>";
show_hide("content_13");
this.head = this.getModuleByClassName(/reviews/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_12'); return false\"><div title=\"header=[CLICK HERE TO MY REVIEW] body=[<img src='http://theftalk.com/pix/logo_white.gif' style='width:164px;height:35px;'>]\">REVIEW'S</div></a>";
show_hide("content_12");
this.head = this.getModuleByClassName(/moreabout/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div title=\"header=[CLICK HERE TO VIEW ABOUT ME] body=[<img src='http://theftalk.com/pix/logo_white.gif' style='width:164px;height:35px;'>]\">ABOUT ME</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 title=\"header=[CLICK HERE TO VIEW MY COMMENT'S] body=[<img src='http://theftalk.com/pix/logo_white.gif' style='width:164px;height:35px;'>]\">COMMENT'S</div></a>";
show_hide("content_18");
this.head = this.getModuleByClassName(/scrapbook/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_10'); return false\"><div title=\"header=[CLICK HERE TO VIEW MY LOUNGE] body=[<img src='http://theftalk.com/pix/logo_white.gif' style='width:164px;height:35px;'>]\">LOUNGE</div></a>";
show_hide("content_10");
this.head = this.getModuleByClassName(/friends/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div title=\"header=[CLICK HERE TO VIEW MY FRIEND'S] body=[<img src='http://theftalk.com/pix/logo_white.gif' style='width:164px;height:35px;'>]\">FRIEND'S</div></a>";
show_hide("content_2");
this.head = this.getModuleByClassName(/groups/i)[0].getElementsByTagName("h2")[0];
this.head.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_8'); return false\"><div title=\"header=[CLICK HERE TO VIEW MY GROUP'S] body=[<img src='http://theftalk.com/pix/logo_white.gif' style='width:164px;height:35px;'>]\">GROUP'S</div></a>";
show_hide("content_8");
},
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]