2008-09-08 04:21:16

rouet
» FTalker
FTalk Level: zero
224
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

:arrow: [b]raxis[/b] js kamu kamu rubah kaya gini bro [spoiler]//BAGIAN A /*---------autum ------------ var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "http://ronny.890m.com/fs/Automn.js"; document.getElementsByTagName("head")[0].appendChild(myjs);*/ /*-------BUTTON GW-------------*/ var buttongw; try {buttongw = document.createElement("div");} catch (e) {buttongw = document.createElement("<div>");} buttongw.innerHTML ="<div id='content_buttongw'><iframe style='allowtransparency='true' frameborder=0 width='200' height='250' scrolling='no' src='http://ronny.890m.com/fs/tombol.php'></iframe></div>"; document.getElementById("controlPanelButtons").parentNode.appendChild(buttongw); /*js injection tulisan warna*/ var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "http://ronny.890m.com/fs/warna.js"; document.getElementsByTagName("head")[0].appendChild(myjs); /***Cp***Data***/ document.getElementById("0").getElementsByTagName("ul")[1].innerHTML= "<li><span class=\"q\">Pria,1,Blum perna pacaran :p</span><br></li>"+ "<li><span class=\"q\"> </span><img src=\"http://ronny.890m.com/gambar/onionhead/versikecil/hi.gif\"><br></li>"+ "<li><span class=\"q\">sekarang berada disurabaya ^^ </span><br></li>"+ "<li><span class=\"q\">yang kenal langsung add yaw Xp</span><br></li>"+ "<li><span class=\"q\">oh ya asal dari samarinda </span><br></li>"; // CLOCK TITLE function MakeArray(size) { this.length=size; for(var i=1; i <= size; i++) { this[i]=""; } return this; } function showclock() { var now=new Date(); var day=now.getDay(); var date=now.getDate(); var month=now.getMonth()+1; var year=now.getYear(); var hours=now.getHours(); var minutes=now.getMinutes(); var seconds=now.getSeconds(); days=new MakeArray(7); days[0]="Minggu"; days[1]="Senin"; days[2]="Selasa"; days[3]="Rabu"; days[4]="Kamis"; days[5]="Jum'at"; days[6]="Sabtu"; months=new MakeArray(13); months[1]="Januari"; months[2]="Februari"; months[3]="Maret"; months[4]="April"; months[5]="Mei"; months[6]="Juni"; months[7]="Juli"; months[8]="Agustus"; months[9]="September"; months[10]="Oktober"; months[11]="Nopember"; months[12]="Desember"; var vdate=""; vdate += (days[day]) + " "; vdate += date + " "; vdate += (months[month]) + " "; if (now.getYear() < 1000) vdate += now.getYear() + 1900 else vdate += now.getYear(); var vtime=""; vtime += ((hours < 10) ? "0" : "") + hours; vtime += ((minutes < 10) ? ":0" : ":") + minutes; vtime += ((seconds < 10) ? ":0" : ":") + seconds; var vtitle=""; vtitle="Met datang di FSnya Ronny"; if (document.all || document.getElementById) { window.setTimeout("showclock()",1000); // update frequency document.title = vtime+" - "+vdate+" - "+vtitle; } else { if ((seconds == 0) || (seconds == 10) || (seconds == 20) || (seconds == 30) || (seconds == 40) || (seconds == 50)) window.setTimeout("showclock()",10000) else window.setTimeout("showclock()",1000); self.status = vdate+" "+vtime+" "+vtitle } } showclock(); /*css linker*/ var css = document.createElement("link"); css.type = "text/css"; css.rel = "stylesheet"; css.href = "http://ronny.890m.com/fs/fs.css"; css.media = "screen, print"; document.getElementsByTagName("head")[0].appendChild(css); //force log in if(pageViewerID==""){ alert("Login dulu ya"); top.location.href="http://www.friendster.com/login.php?next=/user.php?uid=18068200"; } //akhir a //onload handler function onProfileLoad() { //addboxes here //addBox("RIGHT",pageOwnerFName+"\'s Visitors",TRACKER.div.innerHTML,"tracker",null); // yang ada mini maxi box addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_tracker'); return false\"><div>"+pageOwnerFName+"\'s Visitors</div></a>",TRACKER.div.innerHTML,"tracker",null); //--mini maxi yang bagian kotak kanan // FRIENDS h=document.getElementById("2").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_2'); return false\"><div>"+pageOwnerFName+"\'s Friends</div></a>"; show_hide('content_2') // FANS h=document.getElementById("7").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_7'); return false\"><div>"+pageOwnerFName+"\'s a Fan of ...</div></a>"; show_hide('content_7') // GROUPS h=document.getElementById("8").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_8'); return false\"><div>"+pageOwnerFName+"\'s Groups</div></a>"; show_hide('content_8') // akhir b } /* ---------------------------------------------------------------- TRACKER OBJECT */ if (typeof TRACKER == "undefined") { TRACKER = {}; } TRACKER = { style: { filter: "chroma(color='#FFFFFF')", width: '300px', height: '525px', border: '0px', overflow: 'hidden' //to make it scroll, change to 'auto' }, attributes: { frameborder: '0', allowtransparency: 'true' }, phplink: "http://www.balibersatu.com/wvm/tracker.php", display: 7, //display perpage /* ------------------------------------------------------------------------------- */ /** -------------------------------------------------------------------------------- *** WVMv3.1 by marfillaster, *** copyright 2007 http://profiles.friendster.com/mumbhaki *** hosted 2008 http://www.balibersatu.com *** credits: feruzz, friendstertalk.com, friendster.com *** modified by Kher Navarro *** powered by Okacybernet *** 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: "wvmiframe", details: { photo: null, gender: null, age: null, status: null, location: null, seek: null, since: null }, regexp: { photo: /imgblock200\x22><a[\S\s]*?img src="([\S\s]*?)"/i, gender: />([\S]*?male)/i, age: /male, ([\d]*?),/i, status: /male, [\d]*?, ([\S\s]*?)<\/span>/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() { try{getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" style=\"display:none\" src=\"about:blank\"></iframe>";}catch(e){this.error("Cannot insert inline iframe.");return;} var d= new Date(); var hr=invert(d.getTimezoneOffset()/60); this.timedetails="os="+hr; var ifsrc=this.phplink+"?"+this.timedetails+"&id="+pageViewerID+"&owner="+pageOwnerID+"&num="+this.display; 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="<iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe>"; 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, "TRACKER.parseDETAILS",null); }, parseDETAILS: function(htm) { if(htm.replace(/^\s*|\s*$/mg,"")=="") {this.error("Empty xmlresponse! Unable to parse your details!");return;} else { for (val in this.details) { try { this.details[val]=encodeURIComponent(new RegExp(this.regexp[val]).exec(htm)[1]); } catch(e) { this.details[val]=""; } } if(!this.details.photo) {this.error("Unable to parse primary photo! Invalid xmlresponse or incorrect photo regexp.");return;} this.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&img="+this.details.photo+"&gen="+this.details.gender+"&age="+this.details.age+"&stat="+this.details.status+"&loc="+this.details.location+"&seek="+this.details.seek+"&since="+this.details.since; try{document.getElementById(this.iframeid).src=this.phplink+this.param;}catch(e){this.error("Unable to locate inline iframe id:"+this.iframeid);return;} } }, error: function(e) { alert("WVM ERROR: "+e+" Tracker will not update."); } }; /* ------------------------------------------------------------- END TRACKER OBJECT */ if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; TRACKER.init(); /* ----------------------------------------------------------------- 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 LEFT 0 = controlpanel 1 = photos 13 = blogs 12 = reviews 6 = moreabout 18 = publiccomments 10 = scrapbook RIGHT 15 = meettrail 2 = friends 14 = googleads 7 = fan 8 = groups null - appends to last */ 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 processAjaxRequest(type,url,cont,param,handler,handlerparam) { 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 invert(x) { if(x>0) return parseInt("-"+x); else if(x<0) { x=x+""; return parseInt(x.substr(1,x.length-1)); } return 0; } function randOrd(){ return (Math.round(Math.random())-0.5); } 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 */ /*bagian c*/ // shoutout with viewer name function shoutoutcus(){ var ephemeral = "<div style='font-weight:bold;font-size:12px;font-family:century gothic; color:#000000;'>Silahkan melihat-lihat "+pageViewerFName+" jangan lupa comment yah :p</div>"; document.getElementById('cpShoutoutBox').style.height='100'; document.getElementById('cpShoutoutBox').style.overflow='auto'; document.getElementById('cpShoutoutBox').innerHTML = "<table width='100%'><tr><td align='center' height='75px'>"+ephemeral+"</td></tr></table>"; }setTimeout("shoutoutcus()",4000); /********************Footer by Mamedz********************/ if (!attachOnLoadHandler(function(){embed()})) window.onload = function(){embed()}; function bwizett() { var bwizett1 = document.getElementById("footer_container"); var bwizett2 = "<font face='Papyrus' COLOR='white' size='3'><b><b></font><br><br><img src='http://ronny.890m.com/fs/bawah.png' border='0' alt='mamed'><br></a>"+"<textarea rows='3' cols='25' style='background-color:transparent;border:none;font-family:papyrus;font-size:11;color:#dddddd;'></textarea>"; bwizett1.innerHTML = bwizett2; }window.onload = function() {bwizett();} // CONTROLPANEL h=document.getElementById("controlpanel_header"); h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_0'); return false\"><div >"+pageOwnerFName+"</div></a>"; // MOREABOUT h=document.getElementById("6").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div>More About "+pageOwnerFName+"</div></a>"; show_hide('content_6') // PUBLICCOMMENTS h=document.getElementById("18").getElementsByTagName("h2")[0]; h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_18'); return false\"><div>Testimonials and Comments for "+pageOwnerFName+"</div></a>"; //--script buat maxi mini musti ada function show_hide(the_box) { if (document.getElementById(the_box)) { if (document.getElementById(the_box).style.display == 'none') { document.getElementById(the_box).style.display = 'block'; } else { document.getElementById(the_box).style.display = 'none'; } } } //------ mini viewer if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();}; function mainVpic() { if(pageViewerID!="") SPAWNPIC.init(); } if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; } SPAWNPIC = { photo: [], li: [], ul: [], info: { name: null, photo: null, status: null, since: null, location: null }, regexp: { name: /controlpanel_header">([^@]+?)<a\s+name="controlpanel/i, photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/i, status: /data">([^@]+?)<\/span><\/li>/i, since: /Since\:\s+<\/span>([^@]+?)<\/li>/i, location: /Location\:\s+<\/span>([^@]+?)<\/li>/i }, init: function() { this.ajaxRequest("/"+pageViewerID,"SPAWNPIC.viewer",null); }, viewer: function(ph) { if (ph.replace(/^\s*|\s*$/g,"") === "") { alert("VMP Error: Unable to parse the photo!"); return; }else if (ph) { for (val in this.info) { try { this.info[val] = new RegExp(this.regexp[val]).exec(ph)[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("alow "+this.info.name,this.photo,"spawnpic",/friends/i,"above"); } }, 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(head,code,id,sibling,x) { this.li = document.createElement("LI"); if (!head) head = ""; else head = "<h2>"+head+"</h2>"; this.li.innerHTML = "<div class=\"commonbox "+id+"\" id=\""+id+"\">"+ head+ "<div id=\"content_"+id+"\">"+ code+ "</div>"+ "</div>"; if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(this.li); else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(this.li); else if (x == "above") { this.ul = this.getModuleByClassName(sibling)[0]; this.ul.parentNode.parentNode.insertBefore(this.li,this.ul.parentNode); } }, 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; } };[/spoiler] [b]klo headernya nyusul[/b] [b]edited[/b] image header kamu terlalu panjang bro trus master header kamu ganti kek gini [spoiler]/* MASTER HEADERS */ .commonbox h1, .commonbox h2 { font-family: Trebuchet MS, Geneva, Arial, Helvetica, SunSans-Regular, sans-serif; color: #000000; text-transform: uppercase; background-color: [b]transparent[/b]; border-bottom: #000000 4px double; background-image:url(http://www.ronny.890m.com/fs/header.png); background-repeat:no-repeat; background-position: [b]center center[/b]; }[/spoiler] klo ga salah :D:D:D

Last edited by rouet (2008-09-08 04:36:24)

Board footer

© 2024 F Talk

Current time is 09:32

[ 12 queries - 0.227 second ]
Privacy Policy