[b]ajikurn[/b] ni taro d A [quote]//Disable KeyBoard
function keypressed() {
alert("sorii,,ga bole pake HotKey ya");
}
document.onkeydown=keypressed;
// End -->[/quote]
[quote]var from_time = new Date();
from_time = from_time.getTime();
function show_loading_time()
{
var to_time = new Date();
to_time = to_time.getTime();
var secs = (to_time - from_time) /1000;
alert("hanya "+secs+" detik untuk membuka profile "+pageOwnerFName+"")
alert("sabarr ya...lg loading")
}
document.write('<body onLoad="show_loading_time()">') ;[/quote]
INI apus yg ad d C [spoiler]function onProfileLoad() {
var navi="<div align='left'><font color= #000000></font></div> <marquee style='width:85%px;border:2px solid #000000; direction='left' scrollamount='3' onmouseover='this.stop()' onmouseout='this.start()'>|| <a href='http://friendster.com'><font face='century gothic'><b>Home</b></font></a> || <a href='http://profiles.friendster.com/user.php'><font face='century gothic'><b>My Profile</b></font></a> || <a href='http://friendster.com/friends.php'><font face='century gothic'><b>Friends</b></font></a> || <a href='http://www.friendster.com/explore.php'><font face='century gothic'><b>Explore</b></font></a> || <a href='http://friendster.com/gallery.php'><font face='century gothic'><b>Search</b></font></a> || <a href='http://friendster.com/invite.php'><font face='century gothic'><b>Invite</b></font></a> || <a href='http://friendster.com/messages.php'><font face='century gothic'><b>Messages</b></font></a> || <a href='http://friendster.com/editaccount.php'><font face='century gothic'><b>Settings</b></font></a> || <a href='http://friendster.com/logout.php'><font face='century gothic'><b>Log Out</b></font></a> || </marquee><br></div>";
addBox("LEFT","Navigation",navi,"navi","0");
}
[/spoiler]
SEharusnya taro disini jadinya d bagian [b]B[/b] bukan C
[spoiler][b]//onload handler
function onProfileLoad() {
//addboxes here
var navi="<div align='left'><font color= #000000></font></div> <marquee style='width:85%px;border:2px solid #000000; direction='left' scrollamount='3' onmouseover='this.stop()' onmouseout='this.start()'>|| <a href='http://friendster.com'><font face='century gothic'><b>Home</b></font></a> || <a href='http://profiles.friendster.com/user.php'><font face='century gothic'><b>My Profile</b></font></a> || <a href='http://friendster.com/friends.php'><font face='century gothic'><b>Friends</b></font></a> || <a href='http://www.friendster.com/explore.php'><font face='century gothic'><b>Explore</b></font></a> || <a href='http://friendster.com/gallery.php'><font face='century gothic'><b>Search</b></font></a> || <a href='http://friendster.com/invite.php'><font face='century gothic'><b>Invite</b></font></a> || <a href='http://friendster.com/messages.php'><font face='century gothic'><b>Messages</b></font></a> || <a href='http://friendster.com/editaccount.php'><font face='century gothic'><b>Settings</b></font></a> || <a href='http://friendster.com/logout.php'><font face='century gothic'><b>Log Out</b></font></a> || </marquee><br></div>";
addBox("LEFT","Navigation",navi,"navi","0");
}[/b]
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
0 = controlpanel
1 = photos
13 = blogs
12 = reviews
6 = moreabout
18 = publiccomments
10 = scrapbook
RIGHT
15 = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
*/
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);
}
}[/spoiler]
Last edited by teguh0203 (2008-07-01 02:32:17)