[b]moster_brain: CONFIRMATION WELCOME BOX[/b]
[spoiler]if (!confirm("[color=#FF0000]Apakah kamu ingin melihat profile aku apa ga[/color]?"))
window.location=history.go(-1)[/spoiler]
[b]ganti aja tulisan warna [color=#FF0000]merah[/color] dengan kata-kata kamu sendiri[/b]
Last edited by adrizz_ndezo (2008-11-22 12:10:03)
Monster-Brain
ato bsa selain ky bro adriz ndezo dengan alert keq gni
[quote]// ALERT PLUS ISI TESTI
window.onload=function(){
if(pageViewerID != ""){
alert("[b]Benarkah nama kamu...[/b] "+pageViewerFName);
alert("[b]Tak kusangka akhirnya dirimu datang ke sini juga[/b]");
alert("[b]Padahal tak pernah terbesit dalam pikirku tu memikirkanmu[/b]");
alert("[b]Gubrakz...[/b]");
alert("[b]Kaya sinetron aja.. ahiak..ahiak..wakakakak[/b]");
alert("[b]Oh iya, sebelum liad2 profilkuh isi comment dulu yah, biar afdhol[/b]");
var ask=confirm("[b]Gimana, sekaarang aja deh isi testinya, Ok?[/b]")
if(ask==true){
alert("[b]wah..,baik bgt si kamu. "+pageViewerFName+" Minta no telp kmu sekalian dhonk![/b]"); window.location="http://www.friendster.com/comments.php?action=add&uid=http://profiles.friendster.com/63481803";
}
else if(ask==false){
alert("[b]Arhgzrrr..., "+pageViewerFName+" dasar pelit!! aku sumpahin panuan, kadasan, kutu air.. dkk!!![/b]");
alert("[b]He.he.he..jangan dimasukin perut ya, saya cuma becanda koq. "+pageViewerFName+", ok deh... ntar ajah saya nanya lagi... ok[/b]");
}
}
}[/quote]
nyang gw tebalin edit dengan kata2 lo sendiri ya brain....
maklom nubie
klo pertanyaanya gne
boleh tau nama km ga???
boleh dong minta imel ym nya???
klo ga ada email km ajah dch???
[b]moster_brain:[/b]
YM ku [[email protected]][email protected][/email]
Last edited by adrizz_ndezo (2008-11-22 12:24:27)
Last edited by satriya (2008-11-22 12:27:47)
\d+)?::/gim);
if (as) {
for (sm = 0, ls = as.length; sm < ls; sm += 1) {
if (smileys[as[sm].match(/\d+/)[0]] !== "undefined") {
as[sm] = "<img src=\"" + smileys[as[sm].match(/\d+/)[0]] + "\">";
testi.$("komen").value = testi.$("komen").value.replace(/:
\d+)?::/im, as[sm]);
//fixed
cv = cv.replace(/:
\d+)?::/im, as[sm]);
}
}
}
co = testi.$("prevComment");
co = testi.rhtm(co, cv);
},
rform: function (q) {
var ar = arguments.length, os, r, i;
if (ar > 0) {
r = [
[/(&l)(t;\/*)[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*/g, "$1$2noscript..."],
[/(&l)(t;\/*)[\x00-\x20]*s[\x00-\x20]*t[\x00-\x20]*y[\x00-\x20]*l[\x00-\x20]*e[\x00-\x20]*/g, "$1$2nostyle..."],
[/(<[^>]+[\x00-\x20\"\'])(on|xmlns)[^>]*>/g, "$1>"],
[/([a-z]*)[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*)[\x00-\x20]*j[\x00-\x20]*a[\x00-\x20]*v[\x00-\x20]*a[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*
g, "$1=$2nojavascript..."],
[/([a-z]*)[\x00-\x20]*
[\'\"]*)[\x00-\x20]*v[\x00-\x20]*b[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*
g, "$1=$2novbscript..."],
[/([a-z]*)[\x00-\x20]*
[\'\"]*)[\x00-\x20]*-moz-binding[\x00-\x20]*
g, "$1=$2nomozbinding..."],
[/(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*)\s*expression[\x00-\x20]*\([^>]*>/g, "$1>"],
[/(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*)\s*behaviour[\x00-\x20]*\([^>]*>/g, "$1>"],
[/(<[^>]+)style[\x00-\x20]*=[\x00-\x20]*([\`\'\"]*)\s*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:*[^>]*>/g, "$1>"],
[/<\/*\w+:\w[^>]*>/g, ""],
[/(&\#*\w+)[\x00-\x20]+;/g, "$1;"],
[/(&\#x*)([0-9A-F]+);*/g, "$1$2;"],
[/(^[\/]{2}[^\n]*)|([\n]{1,}[\/]{2}[^\n]*)/g, ""]
];
for (i in r) {
if (Object.hasOwnProperty.call(r, i)) {
q.value = q.value.replace(r[i][0], r[i][1]);
}
}
do {
os = q.value;
q.value = q.value.replace(/<\/*(applet|meta|xml|blink|input|form|link|style|script|embed|object|iframe|frame|frameset|ilayer|layer|bgsound|title|base)[^>]*>/g, "");
} while (os !== q.value);
}
return q;
},
cf: function () {
var cp = testi.$("prevComment");
cp = testi.rhtm(cp, "");
testi.$win.setTimeout(function () {
testi.remove("quicktesti");
testi.$win.location.href = "#18";
}, testi.$time);
testi.init();
},
exCSS: function (x) {
var oh = testi.elmsByTag("head", testi.$doc), oc;
if (oh[0]) {
if (testi.$doc.createElementNS && oh[0].tagName === "head") {
oc = oh[0].appendChild(testi.$doc.createElementNS("http://www.w3.org/1999/xhtml", "link"));
} else {
oc = oh[0].appendChild(testi.cElems("link", {
rel: "stylesheet",
href: x,
type: "text/css"
}));
}
}
return oc;
},
xbg: function (e, c, i) {
if (!(e = testi.$(e))) {
return "";
}
var bg = "";
if (e.style) {
if (testi.xStr(c)) {
testi.setStyles(e, {
backgroundColor: c
});
}
if (testi.xStr(i)) {
testi.setStyles(e, {
backgroundImage: (i !== "") ? "url(" + i + ")" : null
});
}
bg = e.style.backgroundColor;
}
return bg;
},
xStr: function (s) {
for (var x in arguments) {
if (Object.hasOwnProperty.call(arguments, x)) {
if (typeof arguments[x] !== "string") {
return false;
}
}
}
return true;
},
cElems: function (t, a, p) {
var el = testi.$doc.createElement(t);
if (a) {
testi.setAttribs(el, a);
}
if (p) {
el.appendChild(p);
}
return el;
},
setAttribs: function (el, a) {
for (var x in a) {
if (Object.hasOwnProperty.call(a, x)) {
el[x] = a[x];
}
}
},
setStyles: function (el, s) {
try {
for (var x in s) {
if (Object.hasOwnProperty.call(s, x)) {
if (testi.$ie && x === "opacity") {
if (s[x] > 0.99) {
el.style.removeAttribute("filter");
} else {
el.style.filter = "alpha(opacity=" + (s[x] * 100) + ")";
}
} else {
el.style[x] = s[x];
}
}
}
} catch (e) {}
},
clearCells: function () {
var mdash = "&md" + "ash;",
tcs = ["keyTarget", "character"], x, tc;
for (x in tcs) {
if (Object.hasOwnProperty.call(tcs, x)) {
tc = testi.$(tcs[x]);
tc = testi.rhtm(tc, mdash);
}
}
},
showTarget: function (evt) {
var kt = testi.$("keyTarget"),
n = evt.target ? evt.target : (evt.srcElement ? evt.srcElement : null);
if (n) {
kt = testi.rhtm(kt, n.nodeName);
}
kt = null;
},
showPress: function (evt) {
var cc, ct;
evt = (evt) ? evt : ((event) ? event : null);
if (evt) {
testi.showTarget(evt);
cc = evt.charCode ? evt.charCode : evt.keyCode;
ct = testi.$("character");
ct = testi.rhtm(ct, String.fromCharCode(cc));
}
},
numkey: function (evt) {
var cc = evt.which ? evt.which : event.keyCode;
if (cc > 31 && (cc < 48 || cc > 57)) {
return false;
}
return true;
},
it: function (o, e) {
var kc = e.keyCode ? e.keyCode : e.charCode ? e.charCode : e.which, os, ss, se;
if (kc === 9 && !e.shiftKey && !e.ctrlKey && !e.altKey) {
os = o.scrollTop;
if (o.setSelectionRange) {
ss = o.selectionStart;
se = o.selectionEnd;
o.value = o.value.substring(0, ss) + "\t" + o.value.substr(se);
o.setSelectionRange(ss + 1, ss + 1);
o.focus();
} else if (o.createTextRange) {
testi.$doc.selection.createRange().text = "\t";
e.returnValue = false;
}
o.scrollTop = os;
return testi.cancelEvent(e);
}
return true;
},
undoredo: function () {
var f = testi.$doc.forms, i, j, bk, e, un;
for (i in f) {
if (Object.hasOwnProperty.call(f, i)) {
if (!f[i].id || (f[i].id && f[i].id.indexOf("_undoable") < 0)) {
continue;
}
bk = f[i].id >= 0;
f[i].id = f[i].id.replace(/_undoable/, "");
e = f[i].elements;
for (j = 0; j < e.length; j += 1) {
un = function un() {
var eh = "onchange", oc, fo;
eh = e[j].type === "text" && bk ? "onkeyup" : eh;
eh = e[j].type === "textarea" && bk ? "onkeyup" : eh;
oc = e[j][eh];
fo = f[i];
e[j][eh] = function () {
if (oc && testi.$evtbs) {
oc();
}
testi.simpan(fo);
if (oc && !testi.$evtbs) {
oc();
}
};
}();
}
testi.simpan(f[i]);
}
}
return un;
},
simpan: function (f) {
var a = f.cloneNode(true);
if (a.elements.length === 0) {
this.Safari = true;
testi.setStyles(a, {
display: "none"
});
a.id = "fssfix";
f.parentNode.appendChild(a);
}
a.fsp = f.fsp;
testi.bacabalik(f, a);
if (!f.fsm) {
f.fsm = [];
f.fsc = 0;
}
f.fsc += 1;
while (f.fsm.length > f.fsc) {
f.fsm.pop();
}
f.fsm[f.fsc] = a;
testi.cq(f);
},
bacabalik: function (f, a) {
var fe = f.elements, ae = a.elements, d = false, i, ap, fp;
for (i = 0; i < fe.length; i += 1) {
d = d || ae[i].checked !== fe[i].checked;
ae[i].checked = fe[i].checked;
ap = a.id === "fssfix" ? "valueHolder" : "value";
fp = f.id === "fssfix" ? "valueHolder" : "value";
d = d || ae[i][ap] !== fe[i][fp];
ae[i][ap] = fe[i][fp];
}
return d;
},
cq: function (f) {
var u = f.fsc > 1,
r = f.fsm.length - f.fsc > 1;
if (f.elements.Undo) {
f.elements.Undo.disabled = !u;
}
if (f.elements.Redo) {
f.elements.Redo.disabled = !r;
}
if (testi.$onsc) {
testi.$onsc(f, u, r);
}
},
undo: function (a, r) {
var t, f;
if (!r) {
r = -1;
}
t = a.tagName.toLowerCase() || "";
if (a.parentNode && t !== "form") {
a = a.parentNode;
return testi.undo(a, r);
}
if (!a.fsm) {
return false;
}
f = a.fsm[a.fsc + r];
if (!f) {
return false;
}
a.fsc += r;
if (!testi.bacabalik(f, a)) {
return testi.undo(a, r);
}
testi.cq(a);
return true;
},
redo: function (a) {
return testi.undo(a, 1);
},
cl: function (f, cf) {
var w = testi.$("wc");
if (f.value.length > testi.$max) {
f.value = f.value.substring(0, testi.$max);
} else {
cf.value = testi.$max - f.value.length;
}
if (cf.value <= 10) {
testi.setStyles(f, {
color: "red"
});
w = testi.rhtm(w, "<blink>Warning!</blink>");
} else {
testi.setStyles(f, {
color: "black"
});
w = testi.rhtm(w, "");
}
if (testi.$doc.all) {
testi.$win.setInterval(function () {
testi.btie();
}, 500);
}
},
btie: function () {
var b = testi.$doc.all.tags("blink"), i, j;
for (i = 0, j = b.length; i < j; i += 1) {
testi.setStyles(b[i], {
visibility: b[i].style.visibility === "" ? "hidden" : ""
});
}
},
Pos: function (x, y) {
this.X = x;
this.Y = y;
this.Add = function Add(val) {
var np = new testi.Pos(this.X, this.Y);
if (val) {
if (!isNaN(val.X)) {
np.X += val.X;
}
if (!isNaN(val.Y)) {
np.Y += val.Y;
}
}
return np;
};
this.Subtract = function Subtract(val) {
var np = new testi.Pos(this.X, this.Y);
if (val) {
if (!isNaN(val.X)) {
np.X -= val.X;
}
if (!isNaN(val.Y)) {
np.Y -= val.Y;
}
}
return np;
};
this.Min = function Min(val) {
var np = new testi.Pos(this.X, this.Y);
if (!val) {
return np;
}
if (!isNaN(val.X) && this.X > val.X) {
np.X = val.X;
}
if (!isNaN(val.Y) && this.Y > val.Y) {
np.Y = val.Y;
}
return np;
};
this.Max = function Max(val) {
var np = new testi.Pos(this.X, this.Y);
if (!val) {
return np;
}
if (!isNaN(val.X) && this.X < val.X) {
np.X = val.X;
}
if (!isNaN(val.Y) && this.Y < val.Y) {
np.Y = val.Y;
}
return np;
};
this.Bound = function Bound(lower, upper) {
var np = this.Max(lower);
return np.Min(upper);
};
this.Check = function Check() {
var np = new testi.Pos(this.X, this.Y);
if (isNaN(np.X)) {
np.X = 0;
}
if (isNaN(np.Y)) {
np.Y = 0;
}
return np;
};
this.Apply = function Apply(elem) {
if (typeof elem === "string") {
elem = testi.$(elem);
}
if (!elem) {
return;
}
if (!isNaN(this.X)) {
testi.setStyles(elem, {
left: this.Y + "px"
});
}
if (!isNaN(this.Y)) {
testi.setStyles(elem, {
top: this.Y + "px"
});
}
};
},
abCurPos: function (ev) {
ev = ev ? ev : testi.$win.event;
if (isNaN(testi.$win.scrollX)) {
return new testi.Pos(ev.clientX + testi.$doc.documentElement.scrollLeft + testi.$doc.body.scrollLeft, ev.clientY + testi.$doc.documentElement.scrollTop + testi.$doc.body.scrollTop);
} else {
return new testi.Pos(ev.clientX + testi.$win.scrollX, ev.clientY + testi.$win.scrollY);
}
},
db: function (elem, ae, lb, ub, sc, mc, ec, al) {
var cstrtpos, elmstrtp, d = false, lst = false, dp = false, temp,
dstrt, dgo, dsthook, dst;
if (typeof elem === "string") {
elem = testi.$(elem);
}
if (!elem) {
return;
}
if (lb && ub) {
temp = lb.Min(ub);
ub = lb.Max(ub);
lb = temp;
}
dstrt = function dstrt(ev) {
if (d || !lst || dp) {
return;
}
d = true;
if (sc) {
sc(ev, elem);
}
cstrtpos = testi.abCurPos(ev);
elmstrtp = new testi.Pos(parseInt(elem.style.left, elem.style.left), parseInt(elem.style.top, elem.style.top));
elmstrtp = elmstrtp.Check();
testi.addEvent(testi.$doc, "mousemove", dgo);
testi.addEvent(testi.$doc, "mouseup", dsthook);
return testi.cancelEvent(ev);
};
dgo = function dgo(ev) {
if (!d || dp) {
return;
}
var np = testi.abCurPos(ev);
np = np.Add(elmstrtp).Subtract(cstrtpos);
np = np.Bound(lb, ub);
np.Apply(elem);
if (mc) {
mc(np, elem);
}
return testi.cancelEvent(ev);
};
dsthook = function dsthook(ev) {
dst();
return testi.cancelEvent(ev);
};
dst = function dst() {
if (!d || dp) {
return;
}
testi.removeEvent(testi.$doc, "mousemove", dgo);
testi.removeEvent(testi.$doc, "mouseup", dsthook);
cstrtpos = null;
elmstrtp = null;
if (ec) {
ec(elem);
}
d = false;
};
this.Dispose = function Dispose() {
if (dp) {
return;
}
this.stlt(true);
elem = null;
ae = null;
lb = null;
ub = null;
sc = null;
mc = null;
ec = null;
dp = true;
};
this.slt = function slt() {
if (lst || dp) {
return;
}
lst = true;
testi.addEvent(ae, "mousedown", dstrt);
};
this.stlt = function stlt(scd) {
if (!lst || dp) {
return;
}
testi.removeEvent(ae, "mousedown", dstrt);
lst = false;
if (scd && d) {
dst();
}
};
this.isd = function isd() {
return d;
};
this.isl = function isl() {
return lst;
};
this.isdp = function isdp() {
return dp;
};
if (typeof ae === "string") {
ae = testi.$(ae);
}
if (!ae) {
ae = elem;
}
if (!al) {
this.slt();
}
},
doHeight: function (np, elem) {
var hb = testi.$("handleBottom"), hd = ["textDiv", "komen"], x;
if (elem !== hb) {
testi.setStyles(hb, {
top: np.Y + "px"
});
}
for (x in hd) {
if (Object.hasOwnProperty.call(hd, x)) {
testi.setStyles(testi.$(hd[x]), {
height: (np.Y - 5) + "px"
});
}
}
},
boxFX: function (eid) {
var elem = testi.$(eid), ts = new Date();
if (!elem) {
return;
}
if (!elem.maut) {
if (!elem.style.opacity || elem.style.opacity === "" || elem.style.opacity === "1") {
elem.maut = -2;
} else {
elem.maut = 2;
}
}
if (elem.maut !== 1 || elem.maut === -1) {
elem.maut = elem.maut === 2 ? -1 : 1;
elem.tempek = testi.$fader;
testi.$win.setTimeout(function () {
testi.animFade((ts).getTime(), eid);
}, 33);
} else {
elem.maut = elem.maut === 1 ? -1 : 1;
elem.tempek = testi.$fader - elem.tempek;
}
if (elem.style.display !== "none") {
testi.$win.setTimeout(function () {
testi.setStyles(elem, {
display: "none"
});
}, testi.$fader);
} else {
testi.$win.setTimeout(function () {
testi.setStyles(elem, {
display: ""
});
}, 33);
}
},
animFade: function (lt, eid) {
var ts = new Date(), ct = (ts).getTime(),
et = ct - lt, elem = testi.$(eid), nov;
if (elem.tempek <= et) {
testi.setStyles(elem, {
opacity: elem.maut === 1 ? "1": "0"
});
testi.setStyles(elem, {
opacity: "alpha(opacity = " + (elem.maut === 1 ? "100": "0") + ")"
});
elem.maut = elem.maut === 1 ? 2 : -2;
return;
}
elem.tempek -= et;
nov = elem.tempek / testi.$fader;
if (elem.maut === 1) {
nov = 1 - nov;
}
testi.setStyles(elem, {
opacity: nov
});
testi.setStyles(elem, {
filter: "alpha(opacity = " + (nov * 100) + ")"
});
testi.$win.setTimeout(function () {
testi.animFade((ts).getTime(), eid);
}, 33);
return elem;
},
itf: function () {
var obj = (testi.elmsByTag("body", testi.$doc)[0].innerText !== undefined) ? true : false;
return obj;
},
changeText: function (elem, val) {
if (!testi.itf()) {
elem.textContent = val;
} else {
elem.innerText = val;
}
},
rtxt: function (text, ta) {
var cp, begin, end, sp;
if (typeof ta.caretPos !== "undefined" && ta.createTextRange) {
cp = ta.caretPos;
cp.text = cp.text.charAt(cp.text.length - 1) === " " ? text + " ": text;
cp.select();
} else if (typeof ta.selectionStart !== "undefined") {
begin = ta.value.substr(0, ta.selectionStart);
end = ta.value.substr(ta.selectionEnd);
sp = ta.scrollTop;
ta.value = begin + text + end;
if (ta.setSelectionRange) {
ta.focus();
ta.setSelectionRange(begin.length + text.length, begin.length + text.length);
}
ta.scrollTop = sp;
} else {
ta.value += text;
ta.focus(ta.value.length - 1);
}
},
insertTag: function (mf, op, cs) {
var sel, sp, ep;
if (testi.$doc.selection && testi.$doc.selection.createRange) {
mf.focus();
sel = testi.$doc.selection.createRange();
sel.text = op + sel.text + cs;
mf.focus();
} else if (mf.selectionStart || mf.selectionStart <= 0) {
sp = mf.selectionStart;
ep = mf.selectionEnd;
mf.value = mf.value.substring(0, sp) + op + mf.value.substring(sp, ep) + cs + mf.value.substring(ep, mf.value.length);
mf.selectionStart = mf.selectionEnd = ep + op.length + cs.length;
mf.focus();
} else {
mf.value += op + cs;
mf.focus();
}
return;
},
lebar: function () {
return testi.$win.innerWidth ? testi.$win.innerWidth : testi.$doc.documentElement && testi.$doc.documentElement.clientWidth ?
testi.$doc.documentElement.clientWidth : testi.$doc.body ? testi.$doc.body.clientWidth : null;
},
tinggi: function () {
return testi.$win.innerHeight ? testi.$win.innerHeight : testi.$doc.documentElement && testi.$doc.documentElement.clientHeight ?
testi.$doc.documentElement.clientHeight : testi.$doc.body ? testi.$doc.body.clientHeight : null;
},
PosisiAtas: function () {
return typeof testi.$win.pageYOffset !== "undefined" ? testi.$win.pageYOffset : testi.$doc.documentElement && testi.$doc.documentElement.scrollTop ?
testi.$doc.documentElement.scrollTop : testi.$doc.body.scrollTop ? testi.$doc.body.scrollTop : 0;
},
PosisiKiri: function () {
return typeof testi.$win.pageXOffset !== "undefined" ? testi.$win.pageXOffset : testi.$doc.documentElement && testi.$doc.documentElement.scrollLeft ?
testi.$doc.documentElement.scrollLeft : testi.$doc.body.scrollLeft ? testi.$doc.body.scrollLeft : 0;
},
showtibai: function (title, message, type, autohide) {
if (!type) {
type = "warning";
}
var ta, tb, tc, td, te, w, h, l, t, tw, th, tp, lp, c;
if (!testi.$("tibai")) {
ta = testi.cElems("div", {
id: "tibai"
});
tb = testi.cElems("div", {
id: "tibai-header"
});
tc = testi.cElems("div", {
id: "tibai-title"
});
td = testi.cElems("div", {
id: "tibai-content"
});
te = testi.cElems("div", {
id: "tibai-mask"
});
testi.$doc.body.appendChild(te);
testi.$doc.body.appendChild(ta);
ta.appendChild(tb);
tb.appendChild(tc);
ta.appendChild(td);
} else {
ta = testi.$("tibai");
tb = testi.$("tibai-header");
tc = testi.$("tibai-title");
td = testi.$("tibai-content");
te = testi.$("tibai-mask");
testi.setStyles(te, {
visibility: "visible"
});
testi.setStyles(ta, {
visibility: "visible"
});
}
testi.setStyles(ta, {
opacity: 0.00,
filter: "alpha(opacity=0)"
});
ta.alpha = 0;
w = testi.lebar();
h = testi.tinggi();
l = testi.PosisiKiri();
t = testi.PosisiAtas();
tw = ta.offsetWidth;
th = ta.offsetHeight;
tp = t + (h / 2) - (th / 2);
lp = l + (w / 2) - (tw / 2);
testi.setStyles(ta, {
top: tp + "px",
left: lp + "px"
});
tb.className = type + "header";
tc = testi.rhtm(tc, title);
td.className = type;
td = testi.rhtm(td, message);
c = testi.$("flo_wrapper");
testi.setStyles(te, {
backgroundColor: "rgb(0, 0, 0)",
height: c.offsetHeight + "px"
});
ta.timer = testi.$win.setInterval(function () {
testi.fadetibai(1);
}, testi.$timer);
if (autohide) {
testi.$win.setTimeout(function () {
testi.hidetibai();
}, (autohide * testi.$fader));
}
},
hidetibai: function () {
var ta = testi.$("tibai");
testi.$win.clearInterval(ta.timer);
ta.timer = testi.$win.setInterval(function () {
testi.fadetibai(0);
}, testi.$timer);
},
fadetibai: function (flag) {
if (flag === -1) {
flag = 1;
}
var ta = testi.$("tibai"), value;
if (flag === 1) {
value = ta.alpha + testi.$speed;
} else {
value = ta.alpha - testi.$speed;
}
ta.alpha = value;
testi.setStyles(ta, {
opacity: (value / 100),
filter: "alpha(opacity=" + value + ")"
});
if (value >= 99) {
testi.$win.clearInterval(ta.timer);
ta.timer = null;
} else if (value <= 1) {
testi.setStyles(ta, {
visibility: "hidden"
});
testi.setStyles(testi.$("tibai-mask"), {
visibility: "hidden"
});
testi.$win.clearInterval(ta.timer);
}
},
rhtm: function (el, htm) {
var oe = typeof el === "string" ? testi.$(el) : el, ne;
/*@cc_on
@if (@_win32 || @_win64)
oe.innerHTML = htm;
return oe;
@end
@*/
ne = oe.cloneNode(false);
ne.innerHTML = htm;
testi.replace(ne, oe);
return ne;
},
trimX: function (htm) {
var ws = /\s/, $tart = 0, end = htm.length;
while (ws.test(htm.charAt($tart += 1))) {
while (ws.test(htm.charAt(end -= 1))) {
return htm.slice($tart - 1, end + 1);
}
}
},
$: function (e) {
var n;
if (e && document && typeof e === "string") {
n = e;
e = testi.$doc.getElementById(e);
if (e && e.id !== n) {
return testi.$doc.getElementsByName(n)[1];
}
}
return e;
},
each: function (o, cb, s) {
var n, l;
if (!o) {
return 0;
}
s = s || o;
if (typeof o.length !== "undefined") {
for (n = 0, l = o.length; n < l; n += 1) {
if (cb.call(s, o[n], n, o) === false) {
return 0;
}
}
} else {
for (n in o) {
if (Object.hasOwnProperty.call(o, n)) {
if (cb.call(s, o[n], n, o) === false) {
return 0;
}
}
}
}
return 1;
},
run: function (e, f, s) {
var o;
if (document && typeof e === "string") {
e = testi.$(e);
}
if (!e) {
return false;
}
s = s || this;
if (!e.nodeType && (e.length || e.length === 0)) {
o = [];
testi.each(e, function (e, i) {
if (e) {
if (typeof e === "string") {
e = testi.$(e);
}
o.push(f.call(s, e, i));
}
});
return o;
}
return f.call(s, e);
},
is: function (o, t) {
var n = typeof(o);
if (!t) {
return n !== "undefined";
}
if (t === "array" && (o instanceof Array)) {
return true;
}
return n === t;
},
replace: function (n, o, k) {
if (testi.is(o, "array")) {
n = n.cloneNode(true);
}
return testi.run(o, function (o) {
if (k) {
testi.each(o.childNodes, function (c) {
n.appendChild(c.cloneNode(true));
});
}
return o.parentNode.replaceChild(n, o);
});
},
remove: function (n, k) {
return testi.run(n, function (n) {
var p, g;
p = n.parentNode;
if (!p) {
return null;
}
if (k) {
testi.each(n.childNodes, function (c) {
p.insertBefore(c.cloneNode(true), n);
});
}
return p.removeChild(n);
});
},
elmsByTag: function (t, p) {
var list;
t = t || "*";
p = testi.$(p) || testi.$doc;
if (typeof p.getElementsByTagName !== "undefined") {
list = p.getElementsByTagName(t);
if (t === "*" && (!list || !list.length)) {
list = p.all;
}
} else {
if (t === "*") {
list = p.all;
} else if (p.all && p.all.tags) {
list = p.all.tags(t);
}
}
return list || [];
},
elmsByClass: function (sc, st, oce) {
st = st || "*";
oce = oce || testi.$doc;
var oc = testi.elmsByTag(st, oce), arr = [], dl, ac, aoc, c, i, j, k, m;
if (!oc.length && st === "*" && oce.all) {
oc = oce.all;
}
dl = sc.indexOf("|") !== -1 ? "|": " ";
ac = sc.split(dl);
for (i = 0, j = oc.length; i < j; i += 1) {
aoc = oc[i].className.split(" ");
if (dl === " " && ac.length > aoc.length) {
continue;
}
c = 0;
cl:
for (k in aoc) {
if (Object.hasOwnProperty.call(aoc, k)) {
for (m in ac) {
if (Object.hasOwnProperty.call(ac, m)) {
if (ac[m] === aoc[k]) {
c += 1;
}
if ((dl === "|" && c === 1) || (dl === " " && c === ac.length)) {
arr.push(oc[i]);
break cl;
}
}
}
}
}
}
return arr;
},
testiBox: function (hd, htm, id, s, i) {
var hn = typeof hd === "string" ? "<h2>" + hd + "</h2>" : null,
sd, sl, ad, ut;
sd = testi.cElems("div", {
className: "commonbox " + id,
id: id,
innerHTML: hn
});
ad = testi.cElems("div", {
id: "content_" + id,
innerHTML: htm
});
sd.appendChild(ad);
sl = testi.cElems("li", null, null);
sl.appendChild(sd);
ut = testi.$(s);
if (i === "below") {
ut.parentNode.appendChild(sl);
} else if (i === "above") {
ut.parentNode.parentNode.insertBefore(sl, ut.parentNode);
} else {
ut.parentNode.parentNode.appendChild(sl);
}
return sd;
},
getRequest: function (url, async, func, hp) {
/*global ActiveXObject, XMLHttpRequest*/
var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"], ct = [],
xmlhttp, rd = false, x, k;
for (x in msxml) {
if (Object.hasOwnProperty.call(msxml, x)) {
ct[ct.length] = msxml[x];
}
}
for (k in ct) {
if (Object.hasOwnProperty.call(ct, k)) {
try {
xmlhttp = testi.$win.ActiveXObject ? new ActiveXObject(ct[k]) : new XMLHttpRequest();
break;
} catch (e) {
xmlhttp = null;
}
}
}
ct = null;
if (typeof func === "function") {
xmlhttp.onreadystatechange = function onreadystatechange() {
if (!rd && xmlhttp && (xmlhttp.readyState === 4)) {
rd = true;
if ((xmlhttp.status >= 200 && xmlhttp.status < 300) || xmlhttp.status === 304 || xmlhttp.status === 1223) {
func(xmlhttp.responseText.replace(new RegExp("<script[^>]*>[\\S\\s]*?<\/script>", "gi"), ""), hp);
}
}
};
}
xmlhttp.open("GET", url, async);
xmlhttp.setRequestHeader("getRequest", "true");
xmlhttp.setRequestHeader("Cache-Control", "no-cache");
xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xmlhttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT");
xmlhttp.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*");
xmlhttp.send(null);
}
};
})();
/*global pageViewerLangPref*/
if (pageViewerLangPref === "en-US") {
testi.init();
}[/spoiler]
tolong di cex bro ya, kayaknya 100% bener kalo scriptnya
[b]Da BucKz[/b]
thanks bro langsung di coba dulu ah,,,,,,,,,,
Last edited by adrizz_ndezo (2008-11-22 12:30:41)
satriya
adrizz_ndezo
makasih banyak kk
&vol=100&pat=3\" width=\"220\" height=\"128\" name=\"myflashfetish\" align=\"middle\"type=\"application/x-shockwave-flash\"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"playList=URL XML KAMU\" wmode=\"transparent\"/></embed><br /><a href=\"http://www.myspaceprodesigns.com\"></a></div></div>";
addBox("MuSiC foR LiFe",mp3,"music",/commonbox[\s]*?friends/i);
//Moving Friends Box
var marqueeFriends = document.getElementById("content_2").innerHTML;
document.getElementById("content_2").innerHTML ="<marquee direction='left' height='600' scrollamount='5' onMouseOver='stop()' onMouseOut='start()'>"+
marqueeFriends+"</marquee>";
/* CEK FS */
var varcekfs="<div><form>"+
"Friendster ID : <input type='text' id='txtcekfs' value='"+pageViewerID+"' maxlength='8' size='8' style='padding: 2px 0px 2px 0px;margin-bottom:2px; text-align:center; color: #CCCCCC; border: 1px solid #808080; background-color: #404040;' /> "+
" <input type='button' class='tombol' id='cek_0' onclick='cekfs()' value=':: Profile ::' />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_0\" onclick=\"show_hide_cekid('outputcekfs')\" value=\"Open/Close\" /><br />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_1\" onclick=\"cek2('1')\" value=\" Photos \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_2\" onclick=\"cek2('2')\" value=\" Friends \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_6\" onclick=\"cek2('6')\" value=\" More About \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_15\" onclick=\"cek2('15')\" value=\" Connections \" /><br />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_18\" onclick=\"cek2('18')\" value=\" Comments \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_7\" onclick=\"cek2('7')\" value=\" Fan \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_8\" onclick=\"cek2('8')\" value=\" Groups \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_13\" onclick=\"cek2('13')\" value=\" Blog \" />"+
"</form><br /><div id='outputcekfs'></div></div>";
addBox("ceK Fs kMu diSiNi",varcekfs,"divcekfs",/commonbox[\s]*?friends/i);
//baru
addBox("Detect friends online","<div align='center'><iframe src='http://www.friendster.com/friends.php?tab=lu' style=\"border:none;width:425px;height:300px;background:#CCC;-moz-border-radius:15px;overflow-x:hidden;overflow-y:auto;\" id=\"friend_when_B\"></iframe><br /><br /><input type=\"button\" class=\"tombol\" value=\":: Refresh ::\" onclick=\"Reload('friend_when_B');\"></div>","friend_when_B",/commonbox[\s]*?friends/i);
}
/*MINI VIEWER*/
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
photo: [],
init: function() {
this.ajaxRequest("http://"+window.location.host+"/"+pageViewerID,"SPAWNPIC.viewer","2");
},
viewer: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("VMP Error: Unable to parse the photo!");
return;
}else if (htm) {
var name = /controlpanel_header">([\S\s]+?)<a\s+?name="controlpanel/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
var photo = /imgblock200"><a[\S\s]*?>([\S\s]+?)<\/a><\/div>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
var status = /data">([\S\s]+?)<\/span><\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
var since = /Since\:\s+?<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
var location = /Location\:\s+<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
this.photo = "<div class=\"fitem1wrapper\">"+
"<table class\"fitem1table\">"+
"<tr><td class=\"itd\">"+
"<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+photo+"</a></td>"+
"<td class=\"dtd\"><ul class=\"data\">"+
"<div class=\"title\"><li><a href=\"/"+pageViewerID+"\">"+name+"</a><br>"+
"Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+status+"<br>"+
"Member Since: "+since+"<br>"+
"Location: "+location+"</li>"+
"</div></ul></td></tr></table></div>";
this.box("Hello "+name,this.photo,"spawnpic",/meettrail/i,"above");
}
},
ajaxRequest: function(url,func,handler) {
if (handler) {
handler = ","+handler;
}else {
handler = "";
}
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if (func) {
eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+func+"(httprequest.responseText"+handler+");}}");
}
httprequest.open("GET", url, true);
httprequest.send(null);
},
box: function(head,code,id,sibling,x) {
var sbdiv = document.createElement("div");
sbdiv.className="commonbox "+id;
sbdiv.id = id;
if (!head) head = "";
else head = "<h2>"+head+"</h2>";
sbdiv.innerHTML = head;
sbdiv.appendChild(document.createElement("div"));
sbdiv.getElementsByTagName("div")[0].id ="content_"+id;
sbdiv.getElementsByTagName("div")[0].innerHTML = code;
var sbli = document.createElement("LI");
sbli.appendChild(sbdiv);
if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli);
else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli);
else if (x == "above") {
var ul = this.getModuleByClassName(sibling)[0];
ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode);
}
},
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;
}
};
SPAWNPIC.init()
/* ---------------------------------------------------------------- TRACKER OBJECT */
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {
style: {
filter: "chroma(color='#FFFFFF')",
width: '300px',
height: '525px',
border: '0px',
overflow: 'hidden' //to make it scroll, change to 'auto'
},
attributes: {
frameborder: '0',
allowtransparency: 'true'
},
phplink: "http://www.balibersatu.com/wvm/tracker.php",
display: 7, //display perpage
/* ------------------------------------------------------------------------------- */
/** --------------------------------------------------------------------------------
*** WVMv3.1 by marfillaster,
*** copyright 2007 http://profiles.friendster.com/mumbhaki
*** hosted 2008 http://www.balibersatu.com
*** credits: feruzz, friendstertalk.com, friendster.com
*** modified by Kher Navarro
*** powered by Okacybernet
*** Disclaimer: NO GUARANTEE and WARRANTY provided! For educational purposes only.
*** Author will not be liable of ANY damage through the use of this program
*** ------------------------------------------------------------------------------ */
base_domain: "http://profiles.friendster.com",div: null,param: null,timedetails: null,iframeid: "wvmiframe",
details: {
photo: null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
regexp: {
photo: /imgblock200\x22><a[\S\s]*?img src="([\S\s]*?)"/i,
gender: />([\S]*?male)/i,
age: /male, ([\d]*?),/i,
status: /male, [\d]*?, ([\S\s]*?)<\/span>/i,
location: /Location\: <\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i,
seek: /In\: <\/span>([\S\s]*?)<\/li>/i,
since: /Since\: <\/span>([\S\s]*?)<\/li>/i
},
init: function() {
try{getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" style=\"display:none\" src=\"about:blank\"></iframe>";}catch(e){this.error("Cannot insert inline iframe.");return;}
var d= new Date();
var hr=invert(d.getTimezoneOffset()/60);
this.timedetails="os="+hr;
var ifsrc=this.phplink+"?"+this.timedetails+"&id="+pageViewerID+"&owner="+pageOwnerID+"&num="+this.display;
var atr="";
var sty="";
for (val in this.attributes) {
atr += val +"="+ this.attributes[val]+" ";
}
for (val in this.style) {
sty += val +":"+ this.style[val]+";";
}
try {this.div=document.createElement("<div>")}
catch(e){this.div=document.createElement("div")}
this.div.innerHTML="<iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe>";
if(pageViewerID!=pageOwnerID) if(pageViewerID!="") this.getDETAILS();
},
getDETAILS: function() {
processAjaxRequest("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, "TRACKER.parseDETAILS",null);
},
parseDETAILS: function(htm) {
if(htm.replace(/^\s*|\s*$/mg,"")=="") {this.error("Empty xmlresponse! Unable to parse your details!");return;}
else {
for (val in this.details) {
try {
this.details[val]=encodeURIComponent(new RegExp(this.regexp[val]).exec(htm)[1]);
}
catch(e) {
this.details[val]="";
}
}
if(!this.details.photo) {this.error("Unable to parse primary photo! Invalid xmlresponse or incorrect photo regexp.");return;}
this.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&img="+this.details.photo+"&gen="+this.details.gender+"&age="+this.details.age+"&stat="+this.details.status+"&loc="+this.details.location+"&seek="+this.details.seek+"&since="+this.details.since;
try{document.getElementById(this.iframeid).src=this.phplink+this.param;}catch(e){this.error("Unable to locate inline iframe id:"+this.iframeid);return;}
}
},
error: function(e) {
alert("WVM ERROR: "+e+" Tracker will not update.");
}
};
/* ------------------------------------------------------------- END TRACKER OBJECT */
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
TRACKER.init();
/* ----------------------------------------------------------------- MISC FUNCTIONS */
function addBox(head,code,id,siblingafter) {
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(!head) head="";
else head="<h2>"+head+"</h2>";
li.innerHTML="<div id=\""+id+"\" class=\"commonbox "+id+"\">"+
head+
"<div id=\"content_"+id+"\">"+
code+
"</div>"+
"</div>";
if(siblingafter=="left") getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else if(siblingafter=="right") getElementsByClass(/commonbox[\s]*?friends/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else {
var si=getElementsByClass(siblingafter,null,"DIV")[0];
si.parentNode.parentNode.insertBefore(li,si.parentNode);
}
}
function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
if(handlerparam) handlerparam=","+handlerparam;
else handlerparam="";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}");
httprequest.open( type, url, cont);
if(type=="POST") {
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", param.length);
httprequest.setRequestHeader("Connection", "close");
}
httprequest.send(param);
}
function invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
function randOrd(){
return (Math.round(Math.random())-0.5);
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(searchClass);
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
/* ----------------------------------------------------------------- END MISC FUNCTIONS */
///shoutout
var shout = "<div align=\"left\" id=\"tw\"><br></div>";
document.getElementById('cpShoutoutBox').innerHTML = "<div>"+shout+"</div>";
// EDIT BAGIAN INI
var content = "MuSIc is mY LIvE,,,2nd FlAt'S....";
function twDisplayTW() {twDisplay('tw',content,0);}
loaded('tw',twDisplayTW);
var brk = '~';
var resetTime = 1;
// JANGAN EDIT BAGIAN INI
function twDisplay(id,content,num) {
var delay = 140;
if (num <= content.length) {
var lt = content.substr(0,num);
document.getElementById(id).innerHTML = lt.replace(RegExp(brk,'g'),'<br \/>');
num++; if (num > content.length) delay = resetTime * 1000;
}
else
{
document.getElementById(id).innerHTML = ''; num = 0;
}
if (delay > 0) setTimeout('twDisplay("'+id+'","'+content+'","'+num+'")',delay);
}
var pageLoaded = 0; window.onload = function() {pageLoaded = 1;};
function loaded(i,f) {
if (document.getElementById && document.getElementById(i) != null) f();
else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);
}
/* VISITOR PICTURE (FERUZZ) --------------------------------- */
if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();};
function viewer() {
if(pageViewerID!="") VIEWERPIC.init();
}
function spawnImage(mypic) {
if (!mypic) {
VIEWERPIC.getCode();
return;
}else {
for (val in VIEWERPIC.info) {
try {
VIEWERPIC.getPhoto = new RegExp(VIEWERPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1");
document.getElementById("mainpic").innerHTML = VIEWERPIC.getPhoto;
}
catch(e) {
VIEWERPIC.getPhoto = "";
document.getElementById("mainpic").innerHTML = "";
}
}
}
}
if (typeof VIEWERPIC == "undefined") { VIEWERPIC = {}; }
VIEWERPIC = {
getPhoto: [],
info: {
photo: null
},
regexp: {
photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/
},
init: function() {
if(document.getElementById("mainpic") != null) {
this.ajaxRequest("/user.php?uid="+pageViewerID,"spawnImage",null);
}
},
ajaxRequest: function(url,ajaxfunc,handler) {
if(handler) {
handler = ","+handler;
}
else handler = "";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(ajaxfunc) {
eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+ajaxfunc+"(httprequest.responseText"+handler+");}}");
}
httprequest.open('GET', url, true);
httprequest.send(null);
}
};
/* FLOATING OBJECT (SHAKIRO214) ----------------------------- */
dude="<div id='divStayTopright' style='position:absolute;z-index:50;'><b><font color='red'>Halo "+pageViewerFName+" </b></font><br><div id='mainpic'></div><br><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/15.gif'><br><b><font color='red'>Sedang Mengunjungi</font> <font color='white'> "+pageOwnerFName+" </font></b><br>"+
"<b><font color='red'>Terakhir Berkunjung</font><font color='white'>: Hari ini "+jamenit+ampm+" </font></b><br></div>";
flow=document.getElementById('flo_wrapper');
river=document.createElement("div");
river.innerHTML=dude;
flow.parentNode.insertBefore(river,flow);
//in this part you can change it into "frombottom" or "fromtop"
var verticalpos="frombottom"
function BoyantDiv()
{
var startX = 40;
var startY = 60;
function ml(id)
{
if (document.getElementById)
{
var wek=document.getElementById(id);
}
else if (document.all)
{
var wek=document.all[id];
}
else
{
var wek=document.layers[id];
}
if(document.layers)
{
wek.style=wek;
}
wek.sP = function(x,y) {shino(x,y);};
function shino(x,y)
{
wek.style.right=x;
wek.style.top=y;
}
wek.x = startX;
if (verticalpos=="fromtop")
{
wek.y = startY;
}
else{
if (navigator.appName.indexOf("Netscape") != -1)
{
wek.y = pageYOffset + innerHeight;
}
else
{
wek.y = document.body.scrollTop + document.body.clientHeight;
}
wek.y -= startY;
}
return wek;
}
window.stayTopright = function () {boyant();};
function boyant()
{
if (verticalpos=="fromtop"){
if (navigator.appName.indexOf("Netscape") != -1)
{
var tenten = pageYOffset;
}
else
{
var tenten = document.body.scrollTop;
}
ftlObj.y += (tenten + startY - ftlObj.y)/8;
}
else{
if (navigator.appName.indexOf("Netscape") != -1)
{
var tenten = pageYOffset + innerHeight;
}
else
{
var tenten = document.body.scrollTop + document.body.clientHeight;
}
ftlObj.y += (tenten - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
wakoko=setTimeout("stayTopright()", 50);
}
ftlObj = ml("divStayTopright");
stayTopright();
}
BoyantDiv();
//TOOLTIPS 1
//tooltips
if (typeof document.attachEvent!='undefined') {
window.attachEvent('onload',init);
document.attachEvent('onmousemove',moveMouse);
document.attachEvent('onclick',checkMove); }
else {
window.addEventListener('load',init,false);
document.addEventListener('mousemove',moveMouse,false);
document.addEventListener('click',checkMove,false);
}
var oDv=document.createElement("div");
var dvHdr=document.createElement("div");
var dvBdy=document.createElement("div");
var windowlock,boxMove,fixposx,fixposy,lockX,lockY,fixx,fixy,ox,oy,boxLeft,boxRight,boxTop,boxBottom,evt,mouseX,mouseY,boxOpen,totalScrollTop,totalScrollLeft;
boxOpen=false;
ox=10;
oy=10;
lockX=0;
lockY=0;
function init() {
oDv.appendChild(dvHdr);
oDv.appendChild(dvBdy);
oDv.style.position="absolute";
oDv.style.visibility='hidden';
document.body.appendChild(oDv);
}
function defHdrStyle() {
dvHdr.innerHTML='<img style="vertical-align:middle" src="info.gif"> '+dvHdr.innerHTML;
dvHdr.style.fontWeight='bold';
dvHdr.style.width='170px';
dvHdr.style.fontFamily='Arial Bold';
dvHdr.style.border='1px solid #A5CFE9';
dvHdr.style.padding='3';
dvHdr.style.fontSize='11';
dvHdr.style.color='#FFFFFF';
dvHdr.style.background='#2F4F4F';
dvHdr.style.filter='alpha(opacity=85)'; // IE
dvHdr.style.opacity='0.85'; // FF
}
function defBdyStyle() {
dvBdy.style.borderBottom='1px solid #A5CFE9';
dvBdy.style.borderLeft='1px solid #A5CFE9';
dvBdy.style.borderRight='1px solid #A5CFE9';
dvBdy.style.width='170px';
dvBdy.style.fontFamily='Arial Bold';
dvBdy.style.fontSize='11';
dvBdy.style.padding='3';
dvBdy.style.color='#FFFFFE';
dvBdy.style.background='#778899';
dvBdy.style.filter='alpha(opacity=85)'; // IE
dvBdy.style.opacity='0.85'; // FF
}
function checkElemBO(txt) {
if (!txt || typeof(txt) != 'string') return false;
if ((txt.indexOf('header')>-1)&&(txt.indexOf('body')>-1)&&(txt.indexOf('[')>-1)&&(txt.indexOf('[')>-1))
return true;
else
return false;
}
function scanBO(curNode) {
if (checkElemBO(curNode.title)) {
curNode.boHDR=getParam('header',curNode.title);
curNode.boBDY=getParam('body',curNode.title);
curNode.boCSSBDY=getParam('cssbody',curNode.title);
curNode.boCSSHDR=getParam('cssheader',curNode.title);
curNode.IEbugfix=(getParam('hideselects',curNode.title)=='on')?true:false;
curNode.fixX=parseInt(getParam('fixedrelx',curNode.title));
curNode.fixY=parseInt(getParam('fixedrely',curNode.title));
curNode.absX=parseInt(getParam('fixedabsx',curNode.title));
curNode.absY=parseInt(getParam('fixedabsy',curNode.title));
curNode.offY=(getParam('offsety',curNode.title)!='')?parseInt(getParam('offsety',curNode.title)):10;
curNode.offX=(getParam('offsetx',curNode.title)!='')?parseInt(getParam('offsetx',curNode.title)):10;
curNode.fade=(getParam('fade',curNode.title)=='on')?true:false;
curNode.fadespeed=(getParam('fadespeed',curNode.title)!='')?getParam('fadespeed',curNode.title):0.04;
curNode.delay=(getParam('delay',curNode.title)!='')?parseInt(getParam('delay',curNode.title)):0;
if (getParam('requireclick',curNode.title)=='on') {
curNode.requireclick=true;
document.all?curNode.attachEvent('onclick',showHideBox):curNode.addEventListener('click',showHideBox,false);
document.all?curNode.attachEvent('onmouseover',hideBox):curNode.addEventListener('mouseover',hideBox,false);
}
else {// Note : if requireclick is on the stop clicks are ignored
if (getParam('doubleclickstop',curNode.title)!='off') {
document.all?curNode.attachEvent('ondblclick',pauseBox):curNode.addEventListener('dblclick',pauseBox,false);
}
if (getParam('singleclickstop',curNode.title)=='on') {
document.all?curNode.attachEvent('onclick',pauseBox):curNode.addEventListener('click',pauseBox,false);
}
}
curNode.windowLock=getParam('windowlock',curNode.title).toLowerCase()=='off'?false:true;
curNode.title='';
curNode.hasbox=1;
}
else
curNode.hasbox=2;
}
function getParam(param,list) {
var reg = new RegExp('([^a-zA-Z]' + param + '|^' + param + ')\\s*=\\s*\\[\\s*(((\\[\\[)|(\\]\\])|([^\\]\\[]))*)\\s*\\]');
var res = reg.exec(list);
var returnvar;
if(res)
return res[2].replace('[[','[').replace(']]',']');
else
return '';
}
function Left(elem){
var x=0;
if (elem.calcLeft)
return elem.calcLeft;
var oElem=elem;
while(elem){
if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderLeftWidth)))&&(x!=0))
x+=parseInt(elem.currentStyle.borderLeftWidth);
x+=elem.offsetLeft;
elem=elem.offsetParent;
}
oElem.calcLeft=x;
return x;
}
function Top(elem){
var x=0;
if (elem.calcTop)
return elem.calcTop;
var oElem=elem;
while(elem){
if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderTopWidth)))&&(x!=0))
x+=parseInt(elem.currentStyle.borderTopWidth);
x+=elem.offsetTop;
elem=elem.offsetParent;
}
oElem.calcTop=x;
return x;
}
var ah,ab;
function applyStyles() {
if(ab)
oDv.removeChild(dvBdy);
if (ah)
oDv.removeChild(dvHdr);
dvHdr=document.createElement("div");
dvBdy=document.createElement("div");
CBE.boCSSBDY?dvBdy.className=CBE.boCSSBDY:defBdyStyle();
CBE.boCSSHDR?dvHdr.className=CBE.boCSSHDR:defHdrStyle();
dvHdr.innerHTML=CBE.boHDR;
dvBdy.innerHTML=CBE.boBDY;
ah=false;
ab=false;
if (CBE.boHDR!='') {
oDv.appendChild(dvHdr);
ah=true;
}
if (CBE.boBDY!=''){
oDv.appendChild(dvBdy);
ab=true;
}
}
var CSE,iterElem,LSE,CBE,LBE, totalScrollLeft, totalScrollTop, width, height ;
var ini=false;
// Customised function for inner window dimension
function SHW() {
if (document.body && (document.body.clientWidth !=0)) {
width=document.body.clientWidth;
height=document.body.clientHeight;
}
if (document.documentElement && (document.documentElement.clientWidth!=0) && (document.body.clientWidth + 20 >= document.documentElement.clientWidth)) {
width=document.documentElement.clientWidth;
height=document.documentElement.clientHeight;
}
return [width,height];
}
var ID=null;
function moveMouse(e) {
//boxMove=true;
e?evt=e:evt=event;
CSE=evt.target?evt.target:evt.srcElement;
if (!CSE.hasbox) {
// Note we need to scan up DOM here, some elements like TR don't get triggered as srcElement
iElem=CSE;
while ((iElem.parentNode) && (!iElem.hasbox)) {
scanBO(iElem);
iElem=iElem.parentNode;
}
}
if ((CSE!=LSE)&&(!isChild(CSE,dvHdr))&&(!isChild(CSE,dvBdy))){
if (!CSE.boxItem) {
iterElem=CSE;
while ((iterElem.hasbox==2)&&(iterElem.parentNode))
iterElem=iterElem.parentNode;
CSE.boxItem=iterElem;
}
iterElem=CSE.boxItem;
if (CSE.boxItem&&(CSE.boxItem.hasbox==1)) {
LBE=CBE;
CBE=iterElem;
if (CBE!=LBE) {
applyStyles();
if (!CBE.requireclick)
if (CBE.fade) {
if (ID!=null)
clearTimeout(ID);
ID=setTimeout("fadeIn("+CBE.fadespeed+")",CBE.delay);
}
else {
if (ID!=null)
clearTimeout(ID);
COL=1;
ID=setTimeout("oDv.style.visibility='visible';ID=null;",CBE.delay);
}
if (CBE.IEbugfix) {hideSelects();}
fixposx=!isNaN(CBE.fixX)?Left(CBE)+CBE.fixX:CBE.absX;
fixposy=!isNaN(CBE.fixY)?Top(CBE)+CBE.fixY:CBE.absY;
lockX=0;
lockY=0;
boxMove=true;
ox=CBE.offX?CBE.offX:10;
oy=CBE.offY?CBE.offY:10;
}
}
else if (!isChild(CSE,dvHdr) && !isChild(CSE,dvBdy) && (boxMove)) {
// The conditional here fixes flickering between tables cells.
if ((!isChild(CBE,CSE)) || (CSE.tagName!='TABLE')) {
CBE=null;
if (ID!=null)
clearTimeout(ID);
fadeOut();
showSelects();
}
}
LSE=CSE;
}
else if (((isChild(CSE,dvHdr) || isChild(CSE,dvBdy))&&(boxMove))) {
totalScrollLeft=0;
totalScrollTop=0;
iterElem=CSE;
while(iterElem) {
if(!isNaN(parseInt(iterElem.scrollTop)))
totalScrollTop+=parseInt(iterElem.scrollTop);
if(!isNaN(parseInt(iterElem.scrollLeft)))
totalScrollLeft+=parseInt(iterElem.scrollLeft);
iterElem=iterElem.parentNode;
}
if (CBE!=null) {
boxLeft=Left(CBE)-totalScrollLeft;
boxRight=parseInt(Left(CBE)+CBE.offsetWidth)-totalScrollLeft;
boxTop=Top(CBE)-totalScrollTop;
boxBottom=parseInt(Top(CBE)+CBE.offsetHeight)-totalScrollTop;
doCheck();
}
}
if (boxMove&&CBE) {
// This added to alleviate bug in IE6 w.r.t DOCTYPE
bodyScrollTop=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
bodyScrollLet=document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;
mouseX=evt.pageX?evt.pageX-bodyScrollLet:evt.clientX-document.body.clientLeft;
mouseY=evt.pageY?evt.pageY-bodyScrollTop:evt.clientY-document.body.clientTop;
if ((CBE)&&(CBE.windowLock)) {
mouseY < -oy?lockY=-mouseY-oy:lockY=0;
mouseX < -ox?lockX=-mouseX-ox:lockX=0;
mouseY > (SHW()[1]-oDv.offsetHeight-oy)?lockY=-mouseY+SHW()[1]-oDv.offsetHeight-oy:lockY=lockY;
mouseX > (SHW()[0]-dvBdy.offsetWidth-ox)?lockX=-mouseX-ox+SHW()[0]-dvBdy.offsetWidth:lockX=lockX;
}
oDv.style.left=((fixposx)||(fixposx==0))?fixposx:bodyScrollLet+mouseX+ox+lockX+"px";
oDv.style.top=((fixposy)||(fixposy==0))?fixposy:bodyScrollTop+mouseY+oy+lockY+"px";
}
}
function doCheck() {
if ( (mouseX < boxLeft) || (mouseX >boxRight) || (mouseY < boxTop) || (mouseY > boxBottom)) {
if (!CBE.requireclick)
fadeOut();
if (CBE.IEbugfix) {showSelects();}
CBE=null;
}
}
function pauseBox(e) {
e?evt=e:evt=event;
boxMove=false;
evt.cancelBubble=true;
}
function showHideBox(e) {
oDv.style.visibility=(oDv.style.visibility!='visible')?'visible':'hidden';
}
function hideBox(e) {
oDv.style.visibility='hidden';
}
var COL=0;
var stopfade=false;
function fadeIn(fs) {
ID=null;
COL=0;
oDv.style.visibility='visible';
fadeIn2(fs);
}
function fadeIn2(fs) {
COL=COL+fs;
COL=(COL>1)?1:COL;
oDv.style.filter='alpha(opacity='+parseInt(100*COL)+')';
oDv.style.opacity=COL;
if (COL<1)
setTimeout("fadeIn2("+fs+")",20);
}
function fadeOut() {
oDv.style.visibility='hidden';
}
function isChild(s,d) {
while(s) {
if (s==d)
return true;
s=s.parentNode;
}
return false;
}
var cSrc;
function checkMove(e) {
e?evt=e:evt=event;
cSrc=evt.target?evt.target:evt.srcElement;
if ((!boxMove)&&(!isChild(cSrc,oDv))) {
fadeOut();
if (CBE&&CBE.IEbugfix) {showSelects();}
boxMove=true;
CBE=null;
}
}
function showSelects(){
var elements = document.getElementsByTagName("select");
for (i=0;i< elements.length;i++){
elements[i].style.visibility='visible';
}
}
function hideSelects(){
var elements = document.getElementsByTagName("select");
for (i=0;i< elements.length;i++){
elements[i].style.visibility='hidden';
}
}[/spoiler]
[b]Masukkan script ini ke dalam CSS extension kamu di bagian atas (kalo sudah ada tinggal di edit saja)[/b]
[quote]/*COLLAPSIBLE COMMENT*/
.publiccomments div div .dtd ul {
color:#F0F8FF;
overflow: hidden;
width: 430px;
height: 35px;
border: 1px solid #F0F8FF;
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);
-moz-opacity: 0.5; opacity: 0.5; border: 1px solid #F0F8FF; padding: 10px;
}
.publiccomments div div .dtd ul:hover{
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100);
-moz-opacity: 1; height: 100%; min-height: 100px }
border: 1px solid #F0F8FF;
}
.data li {color:#F0F8FF}
.publiccomments .title{
width:410px;
background:#778899;
padding:10px;
}[/quote]
Last edited by adrizz_ndezo (2008-11-22 13:13:34)


yg simple ajah kk(css) maklum nubie. . . . .

[b]gusti_rully: MOREABOUT SCROLLINGBOX[/b]
[spoiler]/* MOREABOUT SCROLLINGBOX */
#content_6 {
padding: 2px 2px 2px 2px;
overflow: auto;
width: 100%;
height: 250px;
}[/spoiler]
saya cabut dulu bro thanks ya semuanya maju terus FTI
siap nonton balapan liar dulu,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Last edited by adrizz_ndezo (2008-11-22 13:16:48)
[b]adrizz_ndezo[/b]
Tingkyu BAng coDe nya. . . . . .!!!:rose::rose::rose::rose:




[/quote]
coba lu hapus yg inih bro...
<">




[/quote]
yupzzz...
tapi km ga nyuri script org kn bro???