[quote=irwan_syah]all da yg tau cara buat box ndiri g'?_?
aku mau buat box ntuk foto slide show foto nih[/quote]
prtma, u hrus pnya kode ini d bag C.:
[quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox (type,head,htm,id,sibling) {
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("2").parentNode.parentNode;
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}[/quote]
lalu bwt addbox, taro kode ini d bagian B (onload handler):
[quote]var buckz="[color=red][b]HTML KODE KAMU DISINI[/b][/color]";
addBox("LEFT","<div>[color=orange][b]NAMA HEADER[/b][/color]</div>",buckz,"[color=green][b]DIV-ID BOX[/b][/color]","[color=blue][b]ID BOX[/b][/color]");[/quote]
yg wrna merah, gnti dngn kode keinginan kamu (eg. slide)
orange, gnti dngn nma header kamu..
hijau, gnti dngn DIV-ID box bwt addbox yg satu ini...
& yg biru, gnti dngn box ID bwt menentukan posisi box kita...
klo mw generator'a, bsa lwt sni:
[url]http://h1.ripway.com/fti/nopzgen.html[/url]