2008-01-12 01:47:21

sahabat.peterpan
» FTalkWhiz
FTalk Level: zero
2815
0
1969-12-31

Re: :arrow: [b]Credits goes to all Friendstertalk Members who create these wonderful scripts[/b] [quote][color=red][b]PERHATIAN :[/b][/color] Bagi para FTI'ers yg linker JS dan CSS extensionnya masih be

Ini adalah cara bagaimana membuat WVMCBOX dan NO RIGHT CLICK CBOX. Buat script ini sebagai [b].js[/b] extension OK :) [quote][b]// WVM CBOX[/b] if (!attachOnLoadHandler(function() { whoview();})) window.onload = function() { whoview();}; function whoview(){ WVMCBOX.init(); } if (typeof WVMCBOX == "undefined") { WVMCBOX = {}; } WVMCBOX = { wvmcbox: [], message: ""+Date().replace(/\(.+\)/,"")+"", base: { "cboxdiv": ["[b]www[/b]","[color=red][b]boxID[/b][/color]","[color=blue][b]boxtag[/b][/color]"] }, init: function() { for (val in this.base) { this.wvmcbox = "<iframe frameborder=\"0\" width=\"100%\" height=\"95\" src=\"http://"+this.base[val][0]+".cbox.ws/box/?boxid="+this.base[val][1]+"&boxtag="+this.base[val][2]+"&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"wvm_submit\" id=\"wvm_submit\">"+ "</iframe>"+ "<br />"+ "<div style=\"display:none\">"+ "<form id=\"cform\" target=\"wvm_submit\" action=\"http://"+this.base[val][0]+".cbox.ws/box/?boxid="+this.base[val][1]+"&boxtag="+this.base[val][2]+"&sec=submit\" method=\"post\">"+ "<input type=\"text\" name=\"nme\" value=\""+pageViewerFName+"\">"+ "<input type=\"text\" name=\"eml\" value=\"http://profiles.friendster.com/"+pageViewerID+"\">"+ "<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"200\" cols=\"22\" rows=\"3\" name=\"pst\">"+this.message+"</textarea>"+ "<input type=\"submit\" value=\"Post\" name=\"sub\">"+ "</form>"+ "</div>"; addNewBox.HTML("Recent Visitor","<div id=\""+val+"\" align=\"center\">"+this.wvmcbox+"</div>","wvmcbox",/friends/i,"below"); } if((pageViewerID != pageOwnerID) && (pageViewerID != "")) { document.getElementById("cform").submit(); } } }; if (typeof addNewBox == "undefined") { addNewBox = {}; } addNewBox = { //addNewBox v2.2 /* header: HTML string name null - no header x: "above" - HTML string: at the above of sibling box "below" - HTML string: at the below of sibling box null - HTML string: at the very bottom of box sibling:- /controlpanel/i - /photos/i - /blogs/i - /reviews/i - /moreabout/i - /publiccomments/i - /scrapbook/i - /meettrail/i - /friends/i - /ads/i - /fanof/i - /groups/i */ li: [], ul: [], 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; } };[/quote] ~~~~ NO RIGHT CLICK (CBOX) ~~~~ Ini dia Scriptnya :arrow: [quote][b]// no right click[/b] if (!attachOnLoadHandler(function() { wRClicked();})) window.onload = function() { wRClicked();}; function wRClicked() { /*if(pageViewerID == pageOwnerID)*/ WHORC.init(); } if (typeof WHORC == "undefined") { WHORC = {}; } WHORC = { rccboxform: [], message: "[b]Your Own Word[/b]", base: { "whorcCbox": ["[b]www[/b]","[color=red][b]boxID[/b][/color]","[color=blue][b]boxtag[/b][/color]"] }, init: function() { for (val in this.base) { this.rccboxform = "<iframe frameborder=\"0\" width=\"100%\" height=\"150\" src=\"http://"+this.base[val][0]+".cbox.ws/box/?boxid="+this.base[val][1]+"&boxtag="+this.base[val][2]+"&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"rcPost\" id=\"rcPost\">"+ "</iframe>"+ "<br />"+ "<div style=\"display:none\">"+ "<form name=\"whoClick\" target=\"rcPost\" action=\"http://"+this.base[val][0]+".cbox.ws/box/?boxid="+this.base[val][1]+"&boxtag="+this.base[val][2]+"&sec=submit\" method=\"post\">"+ "<input type=\"text\" name=\"nme\" value=\""+pageViewerFName+"\">"+ "<input type=\"text\" name=\"eml\" value=\"http://profiles.friendster.com/"+pageViewerID+"\">"+ "<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"200\" cols=\"22\" rows=\"3\" name=\"pst\">"+this.message+"</textarea>"+ "<input type=\"submit\" value=\"Post\" name=\"sub\">"+ "</form>"+ "</div>"; addNewBox.HTML("No Right Click","<div id=\""+val+"\" align=\"center\">"+this.rccboxform+"</div>","rccboxform",/friends/i,"below"); } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown = WHORC.NS4; } else if (document.all && !document.getElementById) { document.onmousedown = WHORC.IE4; } document.oncontextmenu = new Function("WHORC.whoRC();return false"); }, whoRC: function() { if((pageViewerID != pageOwnerID) && (pageViewerID != "")) { document.whoClick.submit(); } }, IE4: function() { if (event.button == 2) { this.whoRC(); return false; } }, NS4: function(e) { if (document.layers || document.getElementById && !document.all) { if (e.which == 2 || e.which == 3) { this.whoRC(); return false; } } } }; if (typeof addNewBox == "undefined") { addNewBox = {}; } addNewBox = { //addNewBox v2.2 /* header: HTML string name null - no header x: "above" - HTML string: at the above of sibling box "below" - HTML string: at the below of sibling box null - HTML string: at the very bottom of box sibling:- /controlpanel/i - /photos/i - /blogs/i - /reviews/i - /moreabout/i - /publiccomments/i - /scrapbook/i - /meettrail/i - /friends/i - /ads/i - /fanof/i - /groups/i */ li: [], ul: [], 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; } };[/quote] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ok, sekarang kamu perhatikan script di atas. Disana ada yg berwarna hitam, merah dan biru. Itu adalah link dari CBOX kamu. Hitam menandakan URL dari CBOX kamu (bisa www,www1,www2, dsb). Merah itu menunjukkan boxID CBOX kamu sedang biru menandakan boxtag CBOX kamu. Apakah itu www, boxID dan boxTAG? Kalau kamu membuat CBOX pasti kamu akan mendapatkan script seperti ini (aku sudah langsung berikan warna sesuai fungsinya OK) :arrow: [quote]<!-- BEGIN CBOX - www.cbox.ws --> <div align="center" id="cboxdiv"> <iframe frameborder="0" width="160" height="230" src="http://[b]www3[/b].cbox.ws/box/?boxid=[color=red][b]1234567[/b][/color]&amp;boxtag=[color=blue][b]1234[/b][/color]&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border: 0px solid;" id="cboxmain"></iframe><br/> <iframe frameborder="0" width="160" height="75" src="http://www3.cbox.ws/box/?boxid=2334194&amp;boxtag=4106&amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border: 0px solid;border-top:0px" id="cboxform"></iframe> </div> <!-- END CBOX -->[/quote] Ganti deh warna hitam, merah dan biru dan sesuaikan dengan URL, boxID dan boxtag dari CBOX kamu Ok. Nah script WVMCBOX dan No Right Click CBOX itu lalu kombinasikan dengan JS kamu yg lain menggunakan JS injection. Ini dia :thumbsup: [quote]//wvmcbox var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "[b]URL JS WVMCBOX[/b]"; document.getElementsByTagName("head")[0].appendChild(myjs); //no right click cbox var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "[b]URL JS NO RIGHT CLICK CBOX[/b]"; document.getElementsByTagName("head")[0].appendChild(myjs);[/quote] URL JS KAMU ganti dengan URL JS dari WVMCBOX atau No Right Click CBOX milik kamu. Itu kalau kamu ingin menggunakan keduanya. Kalau tidak ya pilih salah satu saja OK. JS injection itu taruh di paling atas JS utama kalian [b](Bagian A)[/b]. Kalau kalian menggunakan WVM, taruh di paling atas script tracker.js/tracker.txt kamu =)

Last edited by sahabat.peterpan (2008-01-12 01:55:32)

Board footer

© 2024 F Talk

Current time is 00:07

[ 12 queries - 0.083 second ]
Privacy Policy