utsukushiilady Promoter
Number of posts : 2070 Birthday : 1994-02-01 Age : 30 Location : Tawau,Sabah Hobbies : surfing internet Affiliation : muslim of course Registration date : 2009-03-14
| Subject: psal main data Wed Jun 03, 2009 8:53 am | |
| apa kod nya?? kat main data tuh...tukar ke pic owg yg view fs kta??? mcm kt EP puny fs tuh... help sya.... | |
|
Yazid Moderator
Number of posts : 34 Birthday : 1991-07-16 Age : 32 Location : di ati mu!! Hobbies : .................... Registration date : 2009-03-10
| Subject: Re: psal main data Thu Jun 04, 2009 9:46 am | |
| - Quote :
- //kredit feruzz
/** * Viewer's Main Photo at Primary Photo * Copyright 2007-2008 by FeRuZZ  http://profiles.friendster.com/feruzz * Internalize AJAX handler * No warranty expressed or implied. Use at your own risk. **/
/*global PRIMARYIMG*/ (function () { PRIMARYIMG = { // private property photo: null, getPrimaryPic: document.getElementById("content_0").getElementsByTagName("a")[0],
init: function () { if (pageViewerID !== "" || pageViewerID !== pageOwnerID) { try { PRIMARYIMG.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, PRIMARYIMG.viewer, null); } catch (e) {} } },
viewer: function (htm) { if (htm.replace(/^\s*|\s*$/g, "") === "") { window.alert("ERROR: Empty xmlresponse! \n Unable to parse your details!"); return; } else { htm = htm.slice(htm.indexOf("") + 0, htm.indexOf("
") + 0); htm = htm.slice(htm.indexOf("
") + 4); PRIMARYIMG.photo = document.createElement("div"); PRIMARYIMG.photo.className = "img200"; PRIMARYIMG.photo.innerHTML = htm; PRIMARYIMG.getPrimaryPic.parentNode.replaceChild(PRIMARYIMG.photo, PRIMARYIMG.getPrimaryPic); } },
ajaxRequest: function (type, url, async, param, func, handlerparam) { /** * ajaxRequest - You may not remove or change this notice. * version: 2.4 * Copyright 2008 by FeRuZZ  http://profiles.friendster.com/feruzz. * * @type: "GET" | "POST" * @cont: true | false * @param: string | null * @func: string | null * @handlerparam: string | null **/
var httprequest = null; var requestDone = false; var data = null; var responseType = "text"; var timeout = 0; var ival = null; var onreadystatechange = {}; var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var x = 0, len = msxml.length; x < len; x += 1) { try { httprequest = window.ActiveXObject ? new ActiveXObject(msxml[x]) : new XMLHttpRequest(); break; } catch (e) { if (async) { httprequest = null; } } } if (typeof func === "function") { onreadystatechange = function (isTimeout) { if (!requestDone && httprequest && (httprequest.readyState === 4 || isTimeout === "timeout")) { requestDone = true; if (ival) { window.clearInterval(ival); ival = null; } if (!httprequest.status && location.protocol === "file:" || (httprequest.status >= 200 && httprequest.status < 300) || httprequest.status === 304 || httprequest.status === 1223) { var resPonse = (/xml/i.test(responseType))? httprequest.responseXML : httprequest.responseText; func(resPonse.replace(new RegExp("]*>.*?<\/script>", "gi"), ""), handlerparam); } } }; } if (async) { ival = window.setInterval(onreadystatechange, 13); if (timeout > 0) { window.setTimeout(function () { if (httprequest) { httprequest.abort(); if (!requestDone) { onreadystatechange("timeout"); } } }, timeout); } } if (type === "GET" && (/GET/i.test(type))) { var ts = new Date().getTime(); var ret = url.replace(/(\?|&)_=[\S\s]*?(&|$)/, "$1_=" + ts + "$2"); url = ret + ((ret === url) ? (url.match(/\?/) ? "&" : "?") + "_=" + ts : ""); } if (data && type === "GET" && (/GET/i.test(type))) { url += (url.match(/\?/) ? "&" : "?") + data; data = null; } if (type === "POST" && (/POST/i.test(type))) { var headers = "application/x-www-form-urlencoded" + ("UTF-8" ? "; charset=" + "UTF-8" : ""); var contentLength = param ? param.length: 0; try { httprequest.setRequestHeader("Content-type", headers); httprequest.setRequestHeader("Content-length", contentLength); if (httprequest.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) { httprequest.setRequestHeader("Connection", "close"); } } catch (err) {} } httprequest.open(type, url, async); httprequest.setRequestHeader("ajaxRequest", "true"); httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest"); httprequest.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT"); httprequest.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*"); httprequest.send(param); if (!async) { onreadystatechange(); } } }; })(); PRIMARYIMG.init();
try nee...save as .js... | |
|
utsukushiilady Promoter
Number of posts : 2070 Birthday : 1994-02-01 Age : 30 Location : Tawau,Sabah Hobbies : surfing internet Affiliation : muslim of course Registration date : 2009-03-14
| Subject: Re: psal main data Thu Jun 04, 2009 12:43 pm | |
| teda apa2 yg mo d ubah ka nie??
or just d save as .js?? | |
|
Yazid Moderator
Number of posts : 34 Birthday : 1991-07-16 Age : 32 Location : di ati mu!! Hobbies : .................... Registration date : 2009-03-10
| Subject: Re: psal main data Thu Jun 04, 2009 9:29 pm | |
| teda..
save jak..
insyaallah...jdi..
hehhe... | |
|
utsukushiilady Promoter
Number of posts : 2070 Birthday : 1994-02-01 Age : 30 Location : Tawau,Sabah Hobbies : surfing internet Affiliation : muslim of course Registration date : 2009-03-14
| Subject: Re: psal main data Fri Jun 05, 2009 3:13 am | |
| | |
|
emolovesucs [EP] Expert
Number of posts : 512 Birthday : 1993-07-16 Age : 30 Location : tuaran-kaykay(sabah) Hobbies : making something awesome... Registration date : 2009-04-14
| Subject: Re: psal main data Fri Jun 05, 2009 6:57 am | |
| thx larh!!! terror nye bro yazid!! -hazel- | |
|
FaUzYeY Promoter
Number of posts : 1347 Birthday : 1994-11-22 Age : 29 Location : tAwOw!! Hobbies : chatting!! Affiliation : Islam!! Registration date : 2009-04-16
| Subject: Re: psal main data Fri Jun 05, 2009 7:06 am | |
| | |
|
utsukushiilady Promoter
Number of posts : 2070 Birthday : 1994-02-01 Age : 30 Location : Tawau,Sabah Hobbies : surfing internet Affiliation : muslim of course Registration date : 2009-03-14
| Subject: Re: psal main data Fri Jun 05, 2009 7:47 am | |
| ya zid bha tuh... spa x knal... | |
|
FaUzYeY Promoter
Number of posts : 1347 Birthday : 1994-11-22 Age : 29 Location : tAwOw!! Hobbies : chatting!! Affiliation : Islam!! Registration date : 2009-04-16
| Subject: Re: psal main data Fri Jun 05, 2009 7:50 am | |
| aq .... knl....
hahahah..3.. | |
|
utsukushiilady Promoter
Number of posts : 2070 Birthday : 1994-02-01 Age : 30 Location : Tawau,Sabah Hobbies : surfing internet Affiliation : muslim of course Registration date : 2009-03-14
| Subject: Re: psal main data Fri Jun 05, 2009 11:19 am | |
| | |
|
FaUzYeY Promoter
Number of posts : 1347 Birthday : 1994-11-22 Age : 29 Location : tAwOw!! Hobbies : chatting!! Affiliation : Islam!! Registration date : 2009-04-16
| Subject: Re: psal main data Fri Jun 05, 2009 11:20 am | |
| ui.. np mau di locked kar udah.. | |
|
ro Moderator
Number of posts : 1590 Birthday : 1010-10-06 Age : 1013 Location : Banned Hobbies : Banned Affiliation : Banned Registration date : 2009-03-30
| Subject: Re: psal main data Sat Jun 06, 2009 4:53 am | |
| ^bos , ko jgn jd bdk spam forum ni blh ka ? aku tgk bnyk sdh ko spam . post yg teda2 . haduyyy , apa macam ouhhh !
| |
|
FaUzYeY Promoter
Number of posts : 1347 Birthday : 1994-11-22 Age : 29 Location : tAwOw!! Hobbies : chatting!! Affiliation : Islam!! Registration date : 2009-04-16
| Subject: Re: psal main data Sat Jun 06, 2009 5:13 am | |
| ok2.. | |
|
Sponsored content
| Subject: Re: psal main data | |
| |
|