[quote=metropolix]
[b]bang iyan[/b]
ok...
mantap bang yan...
udah kelar...
cuma ada sebagian box² yg gak pkek celana...
thx bang yan,,,
[/quote]
coba kecilin ukuran [b]widht wvmcbox...cbox...no right click cbox[/b] kamu pak...
ama aq liad wvmcbox km lom ada image bawah na
liad iang aq [b]bold[/b][quote]if (typeof addNewBox == "undefined") { addNewBox = {}; }
addNewBox = {
init: function(head,code,id,sibling,x) {
var sbdiv = document.createElement("div");
sbdiv.className="commonbox "+id;
sbdiv.id = id;
if (!head) head = "";
else head = "<h2>"+head+"</h2>";
sbdiv.innerHTML = head;
sbdiv.appendChild(document.createElement("div"));
sbdiv.getElementsByTagName("div")[0].id = "content_"+id;
sbdiv.getElementsByTagName("div")[0].innerHTML = code;[b]sbdiv.appendChild(document.createElement("div"));
sbdiv.getElementsByTagName("div")[3].innerHTML = "<div><img border='0' src='http://i245.photobucket.com/albums/gg57/sekya_cahasu/bagian2bawah.jpg'></div>";[/b]
var sbli = document.createElement("LI");
sbli.appendChild(sbdiv);
if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli);
else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli);
else if (x == "above") {
var ul = this.getModuleByClassName(sibling)[0];
ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode);
}
},
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]
tambahkan persis seperti itu
kalo bingung ganti ma itu...
[b]back up dolo iaph pak...[/b]
liad lagi hasilna...
Last edited by sekya (2008-03-01 03:32:34)