[quote=Mr Adiet]Ini ada pada atas Onload Handler, yaitu bag.A....
Onload Handler itu bag. B bro!!!!
Teliti dech klu bacanya!!![/quote]
hmm???
yg sya mksd tuh dri JS'a dia..
liad aj:
[spoiler]//onload handler
function onProfileLoad() {
//addboxes here
[b]//Welcome Alert
window.onload=function(){
if(pageViewerID != ""){
alert("HeY....PlendZ! "+pageViewerFName);
alert("whatever... ");
alert("MakiN AsIk aja lo...hehe ");
alert("BeneraN deh...CaeM bangeT ");
alert("Tapi...Isi TesTynya Dolo....DikiT aja.....hehe woke ");
alert("Mau kan????");
alert("Gimana Mw gak??? "+pageViewerFName+" Yah????");
var ask=confirm("Mau ya...?")
if(ask==true){
alert("Wah....Jadi makiN caem.....SumpaH deh.. "+pageViewerFName+" TekiU....SlamEt MeliHaT PropIL ku..."); window.location="http://www.friendster.com/comments.php?action=add&uid=manisaja";
}
else if(ask==false){
alert("Ah....Gak asIk lo....(~_~) ");
alert("Y Udah Lah... "+pageViewerFName+" Lain Kali Isi Iah...^^");
alert("Alertnya Ganggu yaH..?,, "+pageViewerFName+" SelamaT MelihaT2 page Ku...");
}
}
}
[/b]
[b]//GoodBye Alert
function ByeTamu()
{alert('Cee YoU..!!..!! '+parent.pageViewerFName+', Jgn Lupa MamPiR ksnI yah kalo BukA FS ^^~..!!');}
window.onbeforeunload = function ()
{ByeTamu();
};[/b]
//***** NAVIGATION =>CREDIT: b-boy_dimaz *****//
var code= "<div align='center'><a href='http://friendster.com'><br><img src='http://www.fileden.com/files/2008/9/5/2083284/Hurup.jpg'></a></br><br><input type='button' value='Kembali Ke Asal' onClick=\"top.location.href='http://www.friendster.com'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[Klik Aja] body=[HOME]\"><input type='button' value='Profile Kamu' onClick=\"top.location.href='http://profiles.friendster.com/user.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[Klik Aja] body=[MY PROFILE]\"><input type='button' value='Pergi Pulang' onClick=\"top.location.href='http://www.friendster.com/logout.php'\" class=\"xinoxs\" align='middle' style='display:inline;' title=\"header=[Klik Aja] body=[LOGOUT]\"></br></br></div>";
addBox("LEFT","<blink><b></b></blink><div>HUNY Dimaz NAVIGASI</div>",code,"mynav","0");
[b]//favicon
var icon = document.createElement("link");
icon.rel = "SHORTCUT ICON";
icon.href = "http://i262.photobucket.com/albums/ii119/very_gedoy/evil.gif";
document.getElementsByTagName("head")[0].appendChild(icon);[/b]
}[/spoiler]
tuh liad yg sya tebelin..
tuh kn hrus'a d atas'a onload handler (bag. A)...
mk'a d postingn sya yg sblom'a sya post "alert ad yg d onload handler, welcome-page jga ad d onload handler...."