Pages: 12
silahkan tutup thread ini jika dirasa menyimpang dari rules..
maaf juga jika judulnya pake bhs inggris karena saiah gak isa artikan itu...
maaf jika mungkin ada yang telah memposting thread ini sebelumnya..
code berikut adalah script goodbye alert.. jadi hanya akan bekerja ketika kamu keluar dari page ..
<">paste di bagian [b]c [/b]dari js kamu..
preview : [align=center][img]http://i42.tinypic.com/15h1ri0.jpg[/img][/align]
live preview :[url=http://profiles.friendster.com/90519660]here[/url]
try it ^^ Last edited by ichigo_reloaded (2009-01-16 20:22:37)




[/quote]
maap bro.. jangan rendahkan diri seperti itu..
udah sepantasnya kita saling berbagi ilmu
Last edited by ichigo_reloaded (2008-12-27 19:33:06)
thx....![/quote]
silahkan bro..

:thunder:
![;]](img/smilies/wink.gif)
.gif)



:idea:
[/quote]
mohon pelajari thread berikut
[url]http://theftalk.com/t53420-mengelabui-ripper-%28update%29.html[/url]
[/quote]
taruh di bagian c (referensi bang kanal) atau setelah onload handler
ini js mentah
[spoiler][color=#FF0000]BAGIAN A[/color]
function loadprofile() {
//(pattern) addBoxfuction ("L-R","Header",htmlnya,"cssid","sibling");
[color=#FFFF00]BAGIAN B[/color]
}
if (!attachOnLoadHandler(function(){loadprofile()})) window.onload = function(){loadprofile()};
function addBox (type,head,htm,id,sibling) {
//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);
}
}
[color=#00FF00]BAGIAN C[/color][/spoiler]
kalo dimasukin jadi seperti ini
[spoiler][color=#FF0000]BAGIAN A[/color]
function loadprofile() {
//(pattern) addBoxfuction ("L-R","Header",htmlnya,"cssid","sibling");
[color=#FFFF00]BAGIAN B[/color]
}
if (!attachOnLoadHandler(function(){loadprofile()})) window.onload = function(){loadprofile()};
function addBox (type,head,htm,id,sibling) {
//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);
}
}
[color=#00FF00]BAGIAN C[/color]
/*
VIEWER SPENT TIME posted by ichigo_reloaded @ friendstertalk.com
*/
var onHours = " ";
var onMinutes = " ";
var onSeconds = " ";
var offHours = 0;
var offMinutes = 0;
var offSeconds = 0;
var logSeconds = 0;
var logMinutes = 0;
var logHours = 0;
var OnTimeValue = " ";
var OffTimeValue = " ";
var PageTimeValue = " ";
// Back to previous page.
function WinOpen()
{
getLogoffTime();
}
// Loads HTML page to full window for View Source.
function WinOpen1()
{
alert('\nPage will load to full screen.\n\nUse View/Document Source from menu bar to view source.\n\nClose new window to return to this page. ');
window.open("js-timer.htm","DisplayWindow","menubar=yes,scrollbars=yes ");
window.open("js-timer.htm","DisplayWindow","menubar=yes,scrollbars=yes ");
}
// Captures logon time.
function getLogonTime()
{
var now = new Date();
// Used to display logon time.
var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
var Hours = now.getHours();
Hours = ((Hours > 12) ? Hours - 12 : Hours);
var Minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
var Seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
// String to display log-on time.
OnTimeValue
" "
+ Hours
+ Minutes
+ Seconds
+ " "
+ ampm);
// Capture logon time for use in timer().
onHours = now.getHours();
onMinutes = now.getMinutes();
onSeconds = now.getSeconds();
}
function getLogoffTime()
{
var now = new Date();
// Used to display logoff time.
var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
var Hours = now.getHours();
Hours = ((Hours > 12) ? Hours - 12 : Hours);
var Minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
var Seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
// String to display log-off time.
OffTimeValue
" "
+ Hours
+ Minutes
+ Seconds
+ " "
+ ampm);
// Capture logoff time for use in timer().
offHours = now.getHours();
offMinutes = now.getMinutes();
offSeconds = now.getSeconds();
timer();
}
// Compute difference between logoff time and logon time.
function timer()
{
if (offSeconds >= onSeconds)
{ logSeconds = offSeconds - onSeconds; }
else
{
offMinutes -= 1;
logSeconds = (offSeconds + 60) - onSeconds;
}
if (offMinutes >= onMinutes)
{ logMinutes = offMinutes - onMinutes; }
else
{
offHours -= 1;
logMinutes = (offMinutes + 60) - onMinutes;
}
logHours = offHours - onHours;
// Used to display time on page.
logHours = ((logHours < 10) ? "0" : ":") + logHours;
logMinutes = ((logMinutes < 10) ? ":0" : ":") + logMinutes;
logSeconds = ((logSeconds < 10) ? ":0" : ":") +logSeconds;
// String to display time on page.
PageTimeValue
" "
+ logHours
+ logMinutes
+ logSeconds);
displayTimes();
}
function displayTimes()
{
alert("dont forget to come back ^^..\n \nLOG ON TIME : " +OnTimeValue+"\n\nLOG OFF TIME : "+OffTimeValue+"\n\nTIME ON PAGE : " + PageTimeValue);
}
document.write('<body onUnLoad="WinOpen()" onLoad="getLogonTime()";>') ;[/spoiler]
trus ikuti tutorial ini
[url]http://theftalk.com/t53420-mengelabui-ripper-(update).html[/url]
[url]http://theftalk.com/t17607-Kumpulan-Kode-JS-by-FTI%27ers-(Thread-Cleaned%2C-July-19th).html[/url] post #16