2008-10-06 00:49:46

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 . knapa ya , aku kan pake mini viewer tapi ga mncul smnjak aku tmbahin kode biar mini viewernya pindah ke atas . sblumnya sih suka muncul knapa ya ? apa koneksinya yg lambat ? tpi ditunggu2 jg ga munculmuncul ini js nya [spoiler]//css injection var v=document.createElement('link'); v.rel='stylesheet'; v.media='screen, print'; v.href='http://h1.ripway.com/atid/css%20komplit.css'; navigation.appendChild(v); //welcome alert alert("hi kamu "+pageViewerFName+""); alert(""+pageViewerFName+" jangan bosen mampir ke fs qqu yyah!"); //goodbye alert function goodbye(){ alert('dadah '+parent.pageViewerFName+' !'); alert("jangan lupa mampir lagi ya!"); } parent.window.onunload=goodbye; // quick comment var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = " http://h1.ripway.com/atid/smile.txt "; document.getElementsByTagName("head")[0].appendChild(myjs); //Created by Title bar Maker (http://www.bosiljak.hr/titlemaker) function tb8_makeArray(n){ this.length = n; return this.length; } tb8_messages = new tb8_makeArray(1); tb8_messages[0] = "butidh oh butidh"; tb8_rptType = 'infinite'; tb8_rptNbr = 5; tb8_speed = 100; tb8_delay = 2000; var tb8_counter=1; var tb8_currMsg=0; var tb8_tekst =""; var tb8_i=0; var tb8_TID = null; function tb8_pisi(){ tb8_tekst = tb8_tekst + tb8_messages[tb8_currMsg].substring(tb8_i, tb8_i+1); document.title = tb8_tekst; tb8_sp=tb8_speed; tb8_i++; if (tb8_i==tb8_messages[tb8_currMsg].length){ tb8_currMsg++; tb8_i=0; tb8_tekst="";tb8_sp=tb8_delay; } if (tb8_currMsg == tb8_messages.length){ if ((tb8_rptType == 'finite') && (tb8_counter==tb8_rptNbr)){ clearTimeout(tb8_TID); return; } tb8_counter++; tb8_currMsg = 0; } tb8_TID = setTimeout("tb8_pisi()", tb8_sp); } tb8_pisi() 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); } } /********* 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); } }; <!-- // If it is not IE, we assume that the browser is NS. var IE = document.all?true:false // If NS -- that is, !IE -- then set up for mouse capture if (!IE) document.captureEvents(Event.MOUSEMOVE) // Set-up to use getMouseXY function onMouseMove document.onmousemove = getMouseXY; // Temporary variables to hold mouse x-y pos.s var TempX = 0 var TempY = 0 var State = 0; var J = 0; var Text = 'a t i d'; var rangeY = Array(-5,-4,-3,-2,-1,0,2,3,4,5); function create() { for(I=0;I<Text.length;I++) { MySpace = document.createElement('div'); MySpace.id = 'Shadow'+I; MySpace.innerHTML = Text.substr(I,1); MySpace.style.top = 100; MySpace.style.left = 100+(20*I); MySpace.style.position = 'absolute'; MySpace.style.color = '#000000'; document.getElementsByTagName('body')[0].appendChild(MySpace); } } function getMouseXY(e) { if (IE) { // grab the x-y pos.s if browser is IE TempX = event.clientX + document.body.scrollLeft TempY = event.clientY + document.body.scrollTop } else { // grab the x-y pos.s if browser is NS TempX = e.pageX TempY = e.pageY } // catch possible negative values in NS4 if (TempX < 0){TempX = 0} if (TempY < 0){TempY = 0} if(State == 0) { State = 1; create(); flag(); } return true } function flag() { for(J = 0;J < Text.length; J++) { MySpace = document.getElementById('Shadow'+J); MySpace.style.top = TempY + rangeY[Math.floor(Math.random() * rangeY.length)]; MySpace.style.left = TempX + 20 + (J*20); } setTimeout('flag()', 100); } //SLIDE SHOW PHOTO function embed(){ var slodde = "<embed src=\"http://widget-2f.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"cy=un&il=1&channel=2810246167487441711&site=widget-2f.slide.com\" style=\"width:97%;height:150px\" name=\"flashticker\" align=\"middle\"/><div style=\"width:100%;text-align:center;\"><a href=\"http://www.friendster.com/photos/22926308\" target=\"_blank\"><b>View All Photo</a> | <a href=\"http://www.friendster.com/friendphotoupload.php?uid=15054731\" target=\"_blank\">Submit Photo</b></a></div>"; document.getElementById('content_1').style.height='97%'; document.getElementById('content_1').style.overflowY='hidden'; document.getElementById('content_1').innerHTML = "<table width='100%'><tr><td align='center'>"+slodde+"</td></tr></table>"; }setTimeout("embed()",10000); /* Control Panel Data */ document.getElementById("0").getElementsByTagName("ul")[1].innerHTML= "<li><span class=\"q\"><img src=\"http://cinta.kaskusradio.com/panda/smiley/1187887781477.gif\"><font face=\"arial\"><blink> astrid uchuld . hwahahaha~ </blink></span><br></li>"+ "<li><span class=\"q\">perempuan cantq, 16, indahnian<br></li>"+ "<li><span class=\"q\"><img src=\"http://cinta.kaskusradio.com/panda/smiley/1187887538599.gif\">baik , rajin , tidak sombong dan rajin menabung .<br></li>"+ "<li><span class=\"q\">member since : </span>tahunduaribulima<br></li>"+ "<li><span class=\"q\"><img src=\"http://cinta.kaskusradio.com/panda/smiley/1187887943782.gif\">myhome sweet home : </span>dunia hailan dunia impian <br></li>"+ "<li><span class=\"q\">Last Login : </span>stu detik yg lalu~<br></li>"+ "<li><span class=\"q\"><img src=\"http://cinta.kaskusradio.com/panda/smiley/1187888294130.gif\">my id : </span>"+pageViewerID+"</br></li>"+ "<li><span class=\"q\">mein name : </span>"+pageViewerFName+"</br></li>"+ "<li><span class=\"q\"><img src=\"http://cinta.kaskusradio.com/panda/smiley/1187888078604.gif\">My Link : </span><br><br><a style=\"font-weight: normal;\" href=\"http://profiles.friendster.com/menwurld\">http://www.friendster.com/menwurld</a><br></li>"; //HIDE CODE function rdiv() { childDiv1=document.getElementById("2") document.getElementById("1").parentNode.appendChild(childDiv1) var hide2=document.getElementById("7"); hide2.parentNode.removeChild(hide2); var hide3=document.getElementById("8"); hide3.parentNode.removeChild(hide3); var hide4=document.getElementById("15"); hide4.parentNode.removeChild(hide4); } window.addEvent('domready', function () { rdiv();});[/spoiler] ada yang salah ?

Last edited by chiids (2008-10-06 01:04:14)

Board footer

© 2024 F Talk

Current time is 17:23

[ 12 queries - 0.253 second ]
Privacy Policy