2008-07-21 00:27:50

dj_afran
» FTalkAgent
FTalk Level: zero
2005
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-

:arrow: [b]dayat[/b] [b]-edited-[/b] bro.. ntu karena ini... [quote]if (!attachOnLoadHandler(function(){embedx()})) window.onload = function(){embedx()}; function embedx(){ var sloddex = "<iframe style='FILTER: chroma(color=#FFFFFF)' allowtransparency='true' frameborder=0 width='100%' height='256' scrolling='no' src=http://h1.ripway.com/maksimmrvica/scroller.php></iframe>"; document.getElementById('content_2').style.height='100%'; document.getElementById('content_2').style.overflowY='hidden'; document.getElementById('content_2').innerHTML = "<table width='100%'><tr><td align='center'>"+sloddex+"</td></tr></table>"; }setTimeout("embedx()",10000);[/quote] klo ntu friend ga mau muncul.. apus aja tuh... di bawah shake window.... :arrow: [b]indra910[/b] jalan om script'a,, tapi yang bagian comment berantakan... :arrow: [b]ami[/b] neeh random friends.. [spoiler] /*RANDOMIZED FRIENDS*/ if (typeof Ffetcher == "undefined") { Ffetcher = {}; } Ffetcher = { friends: new Array(), pages: null, maxfriends: null, container: null, cached: new Array(), display: 10, init: function() { var num=document.links; for(var x=0;x<num.length;x++) { if (num[x].href.match(/\/friends\/[\d]+?/)) { var t=/\(([\d]+?)\)/; this.maxfriends=t.exec(num[x].innerHTML)[1]; break; } } this.pages=Math.floor(this.maxfriends/30); var htm="<div id='fcontainer' class='boxcontent'></div>"; addBox("LEFT","Friends",htm,"frbox","1"); document.getElementById("content_frbox").innerHTML+="<div class='viewall'><a href='javascript: void(Ffetcher.more())'>More Random Friends</a></div>"; this.container=document.getElementById("fcontainer"); this.fetch(0); }, fetch: function(page) { document.getElementById("frbox").childNodes[0].innerHTML="Friends Loading... Please wait..."; processAjaxRequest("GET",TRACKER.base_domain+"/friends/"+pageOwnerID+"/"+page,true,null, "parseFriends",page); }, show: function() { this.container.innerHTML=""; this.friends.sort(randOrd); for(var x=0;x<this.display;x++) { this.container.innerHTML+=this.friends[x]; } }, more: function() { if(this.cached.length<(this.pages+1)) { var temp; do { temp=Math.ceil(Math.random()*(this.pages)); }while(this.cached.toString().indexOf(":"+temp+":")!=-1); this.fetch(temp); } else { this.show(); } } }; function parseFriends(htm,page) { if(!htm){ Ffetcher.fetch(page); return; } var r= /search1\x22>[\S\s]+?paginglinksmodule\x22>([\S\s]+?)<div class=\x22paginglinksmodule/; var temp=r.exec(htm)[1]; temp=temp.match(/<div class="flogriditem">[\S\s]+?<\/div>\n<\/div><\/div>/g); for(var x=0;x<temp.length;x++) { temp[x]=temp[x].replace("samsg_icon.gif>","samsg_icon.gif />"); temp[x]=temp[x].replace(/<a /g,"<a target=_blank "); if(!temp[x].match("nophoto")) Ffetcher.friends.push(temp[x]); } Ffetcher.cached.push(":"+page+":"); document.getElementById("frbox").childNodes[0].innerHTML="<a href=\"#\" onClick=\"show_hide('content_frbox'); return false\"><div title=\"header=[hway "+pageViewerFName+"] body=[Click here to view my other Friends]\">"+pageOwnerFName+"'s Random Friends</div></a>"; show_hide('content_frbox'); Ffetcher.show(); }[/spoiler] taro di bawah addbox setelah tanda ini }... n' untuk standar'in box.. [quote]document.getElementById("shimrow").style.display="none"; getElementByClassName("rtd")[0].style.display="none"; getElementByClassName("ltd")[0].getElementsByTagName("ul")[0].innerHTML+=getElementByClassName("rtd")[0].getElementsByTagName("ul")[0].innerHTML; get_nextsibling(getElementByClassName("ltd")[0]).style.display="none"; function get_nextsibling(n) { x=n.nextSibling; while (x.nodeType!=1) { x=x.nextSibling; } return x; } function getElementByClassName(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; }[/quote] apus tuh... ada'a di paling atas js lo....

Last edited by dj_afran (2008-07-21 00:34:56)

Board footer

© 2024 F Talk

Current time is 10:04

[ 12 queries - 0.506 second ]
Privacy Policy