2008-11-11 06:24:45

y4sir
» FTalkFreak
FTalk Level: zero
1976
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

[spoiler][quote=exe]Ini kode js nya var css = document.createElement("link"); css.setAttribute("rel","stylesheet"); css.setAttribute("href","http://h1.ripway.com/exe11/CSS/viewermainfoto.css"); document.getElementsByTagName("head")[0].appendChild(css); function onProfileLoad() { //onload handler //(pattern) addBox("L-R","Header",htm,"cssid","sibling"); window.addEvent('domready', function() {addBox("RIGHT",pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker",null);}); //other boxes goes here //CBOX var cboxa="<div align='center' id='cboxdiv'><iframe frameborder='0' width='90%' height='300' src='http://www5.cbox.ws/box/?boxid=117652&boxtag=3y9n0r&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' style='border:#ddcace 1px solid;' id='cboxmain'></iframe><br><iframe frameborder='0' width='90%' height='90' src='http://www5.cbox.ws/box/?boxid=117652&boxtag=3y9n0r&sec=form' marginheight='2' marginwidth='2' scrolling='no' allowtransparency='yes' name='cboxform' style='border:#ddcace 1px solid;border-top:0px' id='cboxform'></iframe></div>"; addBox("RIGHT"," My ChAT bOx",cboxa,"cbox","14"); var nav="<div align='left'></div> <marquee style='width:85%px;border:2px inset #ddcace; direction='left' scrollamount='2' onmouseover='this.stop()' onmouseout='this.start()'><input type='button' value='Home' style='background-color:transparent;border:none;font-family:verdana MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://friendster.com'\"> <input type='button' value='My Profile'style='background-color:transparent;border:none;font-family:verdana MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://profiles.friendster.com/user.php'\"> <input type='button' value='My Friends'style='background-color:transparent;border:none;font-family:verdana MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://profiles.friendster.com/friends.php'\"> <input type='button' value='Explore'style='background-color:transparent;border:none;font-family:verdana MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://www.friendster.com/explore.php'\"> <input type='button' value='Search'style='background-color:transparent;border:none;font-family:verdana MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://friendster.com/gallery.php'\"> <input type='button' value='Invite'style='background-color:transparent;border:none;font-family:verdana MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://friendster.com/invite.php'\"> <input type='button' value='Messages'style='background-color:transparent;border:none;font-family:verdana MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://friendster.com/messages.php'\"> <input type='button' value='Settings'style='background-color:transparent;border:none;font-family:georgia MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://friendster.com/editaccount.php'\"> <input type='button' value='Log Out'style='background-color:transparent;border:none;font-family:verdana MS;font-weight:bold;font-size:12;color:#ddcace;' onClick=\"top.location.href='http://friendster.com/logout.php'\"> </marquee><br><div align='left'><font color= #ddcace><strong>Hi</font></strong> <b><font color=ddcace><strong><blink>"+pageViewerFName+"</strong></blink></color></b><br><font color= #ddcace><strong>your ID is </strong></font><b><font color=ddcace><blink><strong>"+pageViewerID+"</strong></blink></color></font><br><strong><font color=#ddcace>and the time and date there is</font> <font color='ddcace'><blink>"+Date()+"</blink></font></strong><br></div>"; addBox("right","My Navigation",nav,"My Navigation","15"); //HEADERS DEFAULT NAME CHANGE h=document.getElementById("6").getElementsByTagName("h2")[0]; h.innerHTML="wHaT yOu WaNnA KnOw"; h=document.getElementById("10").getElementsByTagName("h2")[0]; h.innerHTML="WhAt To PuT hErE"; h=document.getElementById("2").getElementsByTagName("h2")[0]; h.innerHTML="A fEw Of mY FaNs hoHho"; h=document.getElementById("8").getElementsByTagName("h2")[0]; h.innerHTML="jOiN mY gRoUpS"; //Left Side Floating Button dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><a href='http://www.friendster.com/dewirizki' target='_blank'><img src='http://h1.ripway.com/exe11/CSS/yachiruangry.gif' width='80px' height='72px' style='filter:none;-moz-opacity:1.0'/></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(); SPAWNPIC.init(); } /*TRACKER OBJECT*/ if (typeof TRACKER == "undefined") { TRACKER = {}; } TRACKER = { style: { filter: "chroma(color='#ddcace')", width: '300px', height: '720px', border: '0px', overflow: 'hidden' }, attributes: { frameborder: '0', allowtransparency: 'true' }, phplink: "http://h1.ripway.com/exe11/TRACKER/tracker.php", exitmessage: "thanks yah , "+pageViewerFName, /*do not edit below this line*/ /* WVMv2.1 by marfillaster, copyright 2007 friendster.com/mumbhaki credits: feruzz, renalvir(pimped), nopathz, friendstertalk.com, friendster.com licensed under GNU General Public License, version 2 http://www.gnu.org/licenses/gpl.html Disclaimer: NO GUARANTEE and WARRANTY provided! For educational purposes only. Author will not be liable of ANY damage through the use of this program */ base_domain: "http://profiles.friendster.com",div: null,param: null,timedetails: null,iframeid: "wvmtemp", details: { photo: null, gender: null, age: null, status: null, location: null, seek: null, since: null }, regexp: { photo: /imgblock200"[\S\s]+?img src="([\S\s]+?)"/i, gender: />([\S]*male)/i, age: /male, ([\d]*),/i, status: /male, [\d]*,([\S\s]*?)<\/span><\/li>/i, location: /Location\: <\/span><a[\S\s]+?>([\S\s]+?)<\/a><\/li>/i, seek: /In\: <\/span>([\S\s]+?)<\/li>/i, since: /Since\: <\/span>([\S\s]+?)<\/li>/i }, init: function() { getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" src=\"about:blank\" style=\"display:none\"></iframe>"; var d= new Date(); var sec=invert(d.getTimezoneOffset()*60); var hr=invert(d.getTimezoneOffset()/60); this.timedetails="oss="+sec+"&osh="+hr; var ifsrc=this.phplink+"?"+this.timedetails; var atr=""; var sty=""; for (val in this.attributes) { atr += val +"="+ this.attributes[val]+" "; } for (val in this.style) { sty += val +":"+ this.style[val]+";"; } try {this.div=document.createElement("<div>")} catch(e){this.div=document.createElement("div")} this.div.innerHTML="<center><iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe></center>"; if(pageViewerID!=pageOwnerID) if(pageViewerID!="")this.getDETAILS(); }, getDETAILS: function() { processAjaxRequest("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, "parseDETAILS",null); }, sendExit: function() { document.getElementById(this.iframeid).src=this.phplink+this.param+"&exit=1"; alert(this.exitmessage); } }; function parseDETAILS(htm) { if(!htm) { TRACKER.getDETAILS(); return; }else { for (val in TRACKER.details) { try { TRACKER.details[val]=encodeURIComponent(new RegExp(TRACKER.regexp[val]).exec(htm)[1]); } catch(e) { TRACKER.details[val]=""; } } TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.details.photo.replace(/m.jpg/gi,"t.jpg")+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since; document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param; } } if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; TRACKER.init(); if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>"); function invert(x) { if(x>0) return parseInt("-"+x); else if(x<0) { x=x+""; return parseInt(x.substr(1,x.length-1)); } return 0; } /*END TRACKER OBJECT*/ /*MISC FUNCTIONS*/ function urlencode(txt) { return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E"); } function processAjaxRequest(type,url,cont,param,handler,handlerparam) { //by marfillaster //type 'POST' | 'GET' //cont 'true' | 'false' //param string | null //handler string | null //handlerparam string |null if(handlerparam) handlerparam=","+handlerparam; else handlerparam=""; var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}"); httprequest.open( type, url, cont); if(type=="POST") { httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); httprequest.setRequestHeader("Content-length", param.length); httprequest.setRequestHeader("Connection", "close"); } httprequest.send(param); } function getElementsByClass(searchClass,node,tag) { var classElements = new Array(); if ( node == null ) node = document; if ( tag == null ) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp(searchClass); for (i = 0, j = 0; i < elsLen; i++) { if ( pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; } } return classElements; } /*END MISC FUNCTIONS*/ function addBox (type,head,htm,id,sibling) { //by marfillaster //type "LEFT" | "RIGHT" //head header string //htm innerHTML string //id css_id string //sibling css_id_insertbefore string | null /* Available default Siblings Default "sibling_ID" Boxes for Reference (10/19/07) LEFT RIGHT "0" = controlpanel "15" = meettrail "1" = photos "2" = friends "13" = blogs "14" = googleads "12" = reviews "7" = fan "6" = moreabout "8" = groups "18" = publiccomments null = appends to last(without "") "10" = scrapbook */ try { var li=document.createElement("li"); } catch(e) { var li=document.createElement("<li>"); } if(type=="LEFT") { var ul=document.getElementById("0").parentNode.parentNode; htm="<div class='boxcontent'>"+htm+"</div>"; } else {var ul=document.getElementById("2").parentNode.parentNode; } li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+ "<h2>"+head+"</h2>"+ "<div id='content_"+id+"'>"+ htm+ "</div>"+ "</div>"; if(sibling==null) ul.appendChild(li); else { sibling=document.getElementById(sibling).parentNode; ul.insertBefore(li,sibling); } } function tb7_makeArray(n){ this.length = n; return this.length; } tb7_messages = new tb7_makeArray(6); tb7_messages[0] = "+'+'+'+'+weLcome tO Dewi'S pAgE!+'+'+'+'+"; tb7_messages[1] = "__________Enjoy Your Visit__________"; tb7_messages[2] = " . . .Leave Me A Note On Cbox. . ."; tb7_messages[3] = "----->>>>>AsSaLaamu'AlaiKuM<<<<<-----"; tb7_messages[4] = "..::aHHahaAhaHAhaAhAha::.."; tb7_messages[5] = "aRigaTOu"; tb7_rptType = 'infinite'; tb7_rptNbr = 5; tb7_speed = 300; tb7_timeOneMsg = 3000; tb7_minBrojRazmaka = 0; tb7_maxBrojRazmaka = 3; var tb7_counter=1; var tb7_currMsg; var tb7_stsmsg=""; var tb7_brojac = 0; var tb7_expand = true; var tb7_run=false var tb7_tmpmsg=""; var tb7_spaces=""; var tb7_timer=null; for (var i=0; i<tb7_minBrojRazmaka; i++) tb7_spaces += "_"; for (var i=0; i<tb7_messages.length; i++){ tb7_tmpmsg=""; for (var j=0; j<tb7_messages[i].length; j++){ tb7_tmpmsg=tb7_tmpmsg+tb7_spaces+tb7_messages[i].charAt(j); } tb7_messages[i]=tb7_tmpmsg; } function tb7_settitle(){ if (!tb7_run){ clearTimeout(tb7_timer2); return; } var tb7_sts = ""; if (tb7_brojac == 0) document.title = tb7_messages[tb7_currMsg] else{ for (var i=0; i<tb7_messages[tb7_currMsg].length; i++){ for (var j=0; j<tb7_brojac; j++) tb7_sts += "_"; tb7_sts += tb7_messages[tb7_currMsg].charAt(i); } document.title = tb7_sts; } if (tb7_expand && (tb7_brojac >= tb7_maxBrojRazmaka)) tb7_expand=false; if (!tb7_expand && tb7_brojac < tb7_minBrojRazmaka) tb7_expand = true; if (tb7_expand) tb7_brojac++ else tb7_brojac--; tb7_timer2 = setTimeout("tb7_settitle()", tb7_speed); } function tb7_coordinator(){ if (!tb7_run){ tb7_currMsg=0; tb7_run = true; tb7_settitle(); } else{ if (tb7_currMsg == tb7_messages.length-1){ if ((tb7_rptType == 'finite') && (tb7_counter==tb7_rptNbr)){ clearTimeout(tb7_timer); tb7_run = false; return; } tb7_counter++; tb7_currMsg=0; } else{ tb7_currMsg++; } } tb7_timer = setTimeout("tb7_coordinator()",tb7_timeOneMsg); } tb7_coordinator(); if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; } SPAWNPIC = { photo: [], type: "commonbox", info: { name: null, photo: null, status: null, since: null, location: null }, regexp: { name: /controlpanel_header">([^@]+?)<a\s+name="controlpanel/, photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/, status: /data">([^@]+?)<\/span><\/li>/, since: /Since\:\s+<\/span>([^@]+?)<\/li>/, location: /Location\:\s+<\/span>([^@]+?)<\/li>/ }, init: function() { this.ajaxRequest("/"+pageViewerID,"SPAWNPIC.viewer",null); }, viewer: function(mypic) { if (mypic.replace(/^\s*|\s*$/g,"") === "") { alert("VMP Error: Unable to parse the photo!"); return; }else if (mypic) { for (val in this.info) { try { this.info[val] = new RegExp(this.regexp[val]).exec(mypic)[1].replace(/^(\d)$/,"0$1"); }catch(e) { this.info[val] = ""; } } this.photo = "<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>\n"+ "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+ this.info.status+"\n"+ "Member Since: "+this.info.since+"\n"+ "Location: "+this.info.location+"</li>"+ "</div>"+ "</ul></td></tr>"+ "</table></div>"; this.photo = this.photo.replace(/\n/g,"<br />").replace(/<br>/gi,"<br />"); this.HTML("Hello "+this.info.name,this.photo,"spawnpic",/friends/i,"INSERTBEFORE"); } }, 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); }, HTML: function(header,code,id,sibling,insert) { var ul = this.getModuleByClassName(sibling)[0].parentNode; var li = document.createElement("LI"); if (header) { li.innerHTML = "<div class='"+this.type+" "+id+"' id='"+id+"'>"+ "<h2>"+header+"</h2>"+ "<div id='content_"+id+"'>"+code+"</div>"+ "</div>"; } else li.innerHTML = "<div class='"+this.type+" "+id+"' id='"+id+"'>"+code+"</div>"; if (!insert) ul.parentNode.appendChild(li); else if (insert == "INSERTBEFORE") ul.parentNode.insertBefore(li,ul); else if (insert == "APPEND") ul.appendChild(li); }, getModuleByClassName: function(sClass) { var elm = []; var els = document.getElementsByTagName("*") || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className))elm.push(els[j]); } return elm; } }; /* 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); } }; var Dynasty; try {Dynasty = document.createElement("div");} catch (e) {Dynasty = document.createElement("<div>");} Dynasty.innerHTML = "<font size='2'>Welcome</font><strong><font color='#ccccff'> "+pageViewerFName+" </font></strong><br>"+ "<div id='mainpic'></div>"; Dynasty.setAttribute("style","text-align:right;padding-top:10px"); document.getElementById("0").getElementsByTagName("ul")[1].parentNode.appendChild(Dynasty);[/spoiler] fs gue http://www.friendster.com/18619286 Wah jangan diketawain kalo kodenya awut2an :D[/quote] lw pake add box versi moo tools ya ??? aduh klo itu w nmsih rada2 binun !!!

Last edited by y4sir (2008-11-11 06:26:06)

Board footer

© 2024 F Talk

Current time is 12:03

[ 12 queries - 0.226 second ]
Privacy Policy