2008-10-17 11:29:56

teguh0203
» FTalkAgent
FTalk Level: zero
2408
0
1969-12-31

Re: Bagi para member yang ingin bertanya seputar tweaking FS. Silahkan bertanya dan posting disini. Sebelum itu harap membaca dan mengikuti [url=http://theftalk.com/t23371-FORUM-RULES.html][b]FORUM

[b]kuntilanak[/b] ni comot [spoiler]/** * Viewer's Main Photo at Shoutout Box * Copyright 2007-2008 by FeRuZZ © http://profiles.friendster.com/feruzz * Internalize AJAX handler * No warranty expressed or implied. Use at your own risk. **/ /*global MAINPIC*/ (function () { MAINPIC = { // private property photo: null, init: function () { if (pageViewerID !== "") { try { MAINPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, MAINPIC.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("<div class=\"imgblock200\">") + 0, htm.indexOf("<ul id=\"controlPanelButtons\">") + 0); htm = htm.slice(htm.indexOf("<img src=\"") + 10, htm.indexOf("\"></a></div>") + 0); MAINPIC.photo = document.createElement("div"); MAINPIC.photo.setAttribute("id", "mainpic"); MAINPIC.photo.setAttribute("align", "center"); MAINPIC.photo.appendChild(document.createElement("span")); MAINPIC.photo.getElementsByTagName("span")[0].className = "q"; MAINPIC.photo.getElementsByTagName("span")[0].innerHTML = "MESSAGE ONE"; MAINPIC.photo.appendChild(document.createElement("br")); MAINPIC.photo.appendChild(document.createElement("a")); MAINPIC.photo.getElementsByTagName("a")[0].href = "/" + pageViewerID; MAINPIC.photo.getElementsByTagName("a")[0].target = "_blank"; MAINPIC.photo.getElementsByTagName("a")[0].title = pageViewerFName; MAINPIC.photo.getElementsByTagName("a")[0].appendChild(document.createElement("img")); MAINPIC.photo.getElementsByTagName("img")[0].src = htm; MAINPIC.photo.appendChild(document.createElement("br")); MAINPIC.photo.appendChild(document.createElement("span")); MAINPIC.photo.getElementsByTagName("span")[1].className = "q"; MAINPIC.photo.getElementsByTagName("span")[1].innerHTML = "MESSAGE TWO"; var getShoutout = document.getElementById("cpShoutoutBox"); getShoutout.parentNode.replaceChild(MAINPIC.photo, getShoutout); } }, 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[^>]*>.*?<\/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(); } } }; })(); MAINPIC.init();[/spoiler] css nya <">[hr] [b]oblack[/b] ni lagi taro aja sembarang tempat [spoiler]childDiv1=document.getElementById("2") document.getElementById("1").parentNode.appendChild(childDiv1) childDiv2=document.getElementById("7") document.getElementById("18").parentNode.appendChild(childDiv2) childDiv3=document.getElementById("8") document.getElementById("18").parentNode.appendChild(childDiv3)[/spoiler]

Board footer

© 2024 F Talk

Current time is 11:48

[ 13 queries - 0.280 second ]
Privacy Policy