2008-05-15 20:23:46

eddi
» FTalkManiac
FTalk Level: zero
622
0
1969-12-31

Re: [align=justify][b]bagi member yang ingin bertanya seputar tweaking FS, silahkan bertanya dan posting disini, tapi jangan lupa,,sebelum itu tolong [url=http://theftalk.com/t2744-%5BImportant%5D-

[quote=hadiyansyah]:arrow: [b]eddi[/b] bro bisa gak minta scrib buat munculin photo visitor di shout out kayak nya bro,.. tanks[/quote] ini dia :D [b]1st[/b] masukan ini ke css externalmu [quote]#mainpic img { height: [b]100[/b]px; width: [b]100[/b]px; border: 2px #[b]97B6CA[/b] solid; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50); -moz-border-radius: 10px; -moz-opacity: 0.5; -khtml-opacity: 0.5; opacity: 0.5; } #mainpic a:hover img { filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100); -moz-border-radius: 10px; -moz-opacity: 1.0; -khtml-opacity: 1.0; opacity: 1.0; }[/quote] yg di bold boleh diedit sesuai dgn selera bro :D dan buat di js nya masukan ini, boleh di bag. B atau C [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*/ 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 = "[b]kata2 diatas photo[/b]"; 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 = "[b]kata2 dibawah photo[/b]"; 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] :thumbsup: itu juga sama ganti yg di bold [align=right]credit feruzz[/align]

Board footer

© 2024 F Talk

Current time is 16:41

[ 12 queries - 0.422 second ]
Privacy Policy