2008-10-06 04:59:41

chiids
» FTalker
FTalk Level: zero
210
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

all kalo kode yang ini [spoiler]/* FLOATING OBJECT (SHAKIRO214) ----------------------------- */ dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><div id='mainpic'></div></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 = 15; var startY = 170; 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.left=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.stayTopLeft = 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("stayTopLeft()", 50); } ftlObj = ml("divStayTopLeft"); stayTopLeft(); } BoyantDiv(); /* 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); } };[/spoiler] cuma foto visitornya doang ya . bisa ga klo kode mini viewer yang ini [spoiler]/********* MINI VIEWER ***********/ if ( ! attachOnLoadHandler(function (){mainVpic();})) window.onload = function (){ mainVpic();}; function mainVpic() { if(pageViewerID!="") SPAWNPIC.init(); } function getRegExpDetails(mypic) { if(!mypic) { SPAWNPIC.getCode(); return; }else { for (val in SPAWNPIC.info) { try { SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1"); }catch(e) { SPAWNPIC.info[val] = ""; } } if(pageViewerID != "") SPAWNPIC.openForm(); } } if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; } SPAWNPIC = { viewerphoto: [], info: { name: null, photo: null, status: null, since: null, location: null }, regexp: { name: /controlpanel_header">((.|\s)+?)<a\s*name="controlpanel/, photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/, status: /data">((.|\s)+?)<\/span><\/li>/, since: /Since\:\s*<\/span>((.|\s)+?)<\/li>/, location: /Location\:\s*<\/span>((.|\s)+?)<\/li>/ }, content: { id: "viewerphoto", sibling: "15" }, init: function() { this.ajaxRequest("viewerPic","/user.php?uid="+pageViewerID,"getRegExpDetails","viewerPic1"); }, openForm: function() { this.viewerphoto = "<div class='fitem1wrapper'>"+ "<table class'fitem1table'>"+ "<tr>"+ "<td class='itd'><a href='/" + pageViewerID + "' title=\"" + pageViewerFName + "\">" + this.info.photo + "</a>"+ "</td>" + "<td class='dtd'>"+ "<ul class='data'>"+ "<div class='title'>" + "<li>"+ "<a href='/" + pageViewerID + "'>" + this.info.name + "</a>"+ "<br />Friendster ID: <a href='/" + pageViewerID + "'>" + pageViewerID + "</a>"+ this.info.status + "<br>Member Since: " + this.info.since + "<br />Location: " + this.info.location + "</li>"+ "</div>" + "</ul>"+ "</td>"+ "</tr>"+ "</table>"+ "</div>"; this.addContent("hi!welcome "+this.info.name,this.viewerphoto,this.content.id,this.content.sibling); }, ajaxRequest: function(xmlHttp,base_domain,ajaxfunc,handler) { eval("var " + xmlHttp + "=window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject('Msxml2.XMLHTTP');"); eval(xmlHttp + ".onreadystatechange=function(){if(" + xmlHttp + ".readyState==4){" + handler + "=" + xmlHttp + ".responseText;" + ajaxfunc + "(" + handler + ")}}"); eval(xmlHttp + ".open('GET','" + base_domain + "',true);"); eval(xmlHttp + ".send(null);"); }, addContent: function(header,cont,id,sibling) { var box = document.getElementById(sibling).parentNode; try { var obj = document.createElement("LI"); }catch(e) { var obj = document.createElement("<LI>"); } obj.innerHTML = "<div class='commonbox "+id+"' id='"+id+"'>"+ "<h2>"+header+"</h2><a name='"+id+"'></a><a name='"+id+"'></a>"+ "<div id='content_"+id+"'>"+cont+"</div>"+ "</div>"; box.parentNode.insertBefore(obj,box); } };[/spoiler] jadiin naik turun disebelah kiri kaya kode sblumnya ? tapi ga ftonya aja ??? hheheheh help me

Last edited by chiids (2008-10-06 05:04:02)

Board footer

© 2024 F Talk

Current time is 17:28

[ 12 queries - 0.204 second ]
Privacy Policy