[quote=busug]addBox(header,slide,"custombox_17",/commonbox[\s]*?friends/i);
trus lklo kode diatas mauk dganti letaknya apa cma tulisan friendnnya aj yang dganti?[/quote]
klo itu tergantung ama fungction addbox nya..
^_^
biasanya gini bro:
[quote]//addNewBox v2.2
/*
header: HTML string name
null - no header
x: "above" - HTML string: at the above of sibling box
"below" - HTML string: at the below of sibling box
null - HTML string: at the very bottom of box
sibling:- [b]/controlpanel/i[/b]
- [b]/photos/i[/b]
- [b]/blogs/i[/b]
- [b]/reviews/i[/b]
- [b]/moreabout/i[/b]
- [b]/publiccomments/i[/b]
- [b]/scrapbook/i[/b]
- [b]/meettrail/i[/b]
- [b]/friends/i[/b]
- [b]/ads/i[/b]
- [b]/fanof/i[/b]
- [b]/groups/i[/b]
*/
li: [], ul: [],
HTML: function(head,code,id,sibling,x) {
this.li = document.createElement("LI");
if (!head) head = "";
else head = "<h2>"+head+"</h2>";
this.li.innerHTML = "<div class=\"commonbox "+id+"\" id=\""+id+"\">"+
head+
"<div id=\"content_"+id+"\">"+
code+
"</div>"+
"</div>";
if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(this.li);
else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(this.li);
else if (x == "above") {
this.ul = this.getModuleByClassName(sibling)[0];
this.ul.parentNode.parentNode.insertBefore(this.li,this.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]
d sesuain az ama itunya!!
^_^
biasa nya ada tulisan:
[quote],/fanof/i,"[b]below[/b]");[/quote]
klo nggak:
[quote],/fanof/i,"[b]above[/b]");[/quote]
klo setau kamus bhsa inggris dee sih klo below tu d bawah nya...
klo above d atas nya..
^_^
maap klo salah!!
[quote=Colin_McRally]ooooo gitu ya.
sekarang qu paham.Bro [b]deeucul[/b] emang hebat
tapi ada satu lagi bro,Rencanaya qu mo masang wvm yang versi 3.1
katanya fungsi addboxnya beda kaya yang di atas ya?
jadi sendaiany mo masang, semua fungsi addboxnya harus diganti ya?
leh tau gak format penulisannya
Maaf ya bro kalau pertanyaan aku merepotkan
soalnya lagi asik2nya ngedit fs.[/quote]
yah d sesuain az bro...
kan klo tracker nya :
[quote]addBox("[b]RIGHT[/b]","Visitor",TRACKER.div.innerHTML,"tracker");[/quote]
yah add box yg laen nya ikut...
contoh:
[quote]addBox("[b]RIGHT[/b]","Chat Box Area",cbox,"cboxbox","14");[/quote]
tapi klo tracker nya :
[quote]addBox("Visitor",TRACKER.div.innerHTML,"tracker","[b]right[/b]");[/quote]
yah add box yg laen ngikutin:
[quote]addBox("Chat Box Area",cbox,"cboxbox","[b]right[/b]");[/quote]
penulisan capslock berpengaruh ama kerja addbox!!!
hho...
[quote=kyz_0000]@deeucul
oohh iy bro ... tp ud ngga koq sekarang ny lg kuliat ....bro pk FF kan ??[/quote]
iia pake FF..
buad yg cek fs itu..
ad thread na g bro??
coz dee lum pernah pake!
^_^