2008-02-21 04:35:13

deeucul
» FTalkFreak
FTalk Level: zero
1548
0
1969-12-31

Re: nah.. d snii temen2 skalian bisa nanya mengenai problem2 FS.. [jangan problem cinta.. itu mah lain. . :P hwehwehwehwe].. ya? byr ga ad SPAMMER d section Indo..hewhehwe.. :eh: peace and love,.. :

[quote=Powerfulkids]bang dee minta bantuan donk.[/quote] bantuan ap bro??? [quote=traNzisTa][b]@kak deeucul[/b] minta code no right click dunk kak tapi yang addbox sama alert :D[/quote] nui kode nya sist : :thumbsdown: [quote]if (!attachOnLoadHandler(function() { WHORC.init();})) window.onload = function() { WHORC.init();}; if (typeof WHORC == "undefined") { WHORC = {}; } WHORC = { rccboxform: null, message: "No Right Click Please cool ", base: { "whorcCbox": ["[color=red]www[/color]","[color=blue]boxID[/color]","[color=green]boxtag[/color]"] }, init: function() { for (val in WHORC.base) { WHORC.rccboxform = "<iframe frameborder=\"0\" width=\"100%\" height=\"325\" src=\"http://"+WHORC.base[val][0]+".cbox.ws/box/?boxid="+WHORC.base[val][1]+"&boxtag="+WHORC.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://"+WHORC.base[val][0]+".cbox.ws/box/?boxid="+WHORC.base[val][1]+"&boxtag="+WHORC.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\">"+WHORC.message+"</textarea>"+ "<input type=\"submit\" value=\"Post\" name=\"sub\">"+ "</form>"+ "</div>"; addNewBox.init(pageOwnerFName+"'s No Right Click Box","<div id=\""+val+"\" align=\"center\">"+WHORC.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) { WHORC.whoRC(); return false; } }, NS4: function(e) { if (document.layers || document.getElementById && !document.all) { if (e.which == 2 || e.which == 3) { WHORC.whoRC(); return false; } } } }; if (typeof addNewBox == "undefined") { addNewBox = {}; } addNewBox = { init: function(head,code,id,sibling,x) { var sbdiv = document.createElement("div"); sbdiv.className="commonbox "+id; sbdiv.id = id; if (!head) head = ""; else head = "<h2>"+head+"</h2>"; sbdiv.innerHTML = head; sbdiv.appendChild(document.createElement("div")); sbdiv.getElementsByTagName("div")[0].id = "content_"+id; sbdiv.getElementsByTagName("div")[0].innerHTML = code; var sbli = document.createElement("LI"); sbli.appendChild(sbdiv); if (!x) addNewBox.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); else if (x == "below") addNewBox.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); else if (x == "above") { var ul = addNewBox.getModuleByClassName(sibling)[0]; ul.parentNode.parentNode.insertBefore(sbli,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] tapi harus daftar dlo d [url=www.cbox.ws]cbox[/url] klo udah tnggal edit bagian : [color=red]www[/color],[color=blue]boxID[/color],[color=green]boxtag[/color] trus d buad [b].js[/b] external baru... tyuz pake js injection: :thumbsdown: [quote]//no right click cbox var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "[color=red]URL_no_right_click.js[/color]"; document.getElementsByTagName("head")[0].appendChild(myjs);[/quote] alert yg no right klick?? klo iia... ini code nya: :thumbsdown: [quote]// no right klick var msg = "[color=red]Message[/color]"; function clickIE4() {if (event.button == 2) {alert(msg); return false; } } function clickNS4(e) {if (document.layers || document.getElementById && ! document.all) {if (e.which == 2 || e.which == 3) {alert(msg); 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(msg);top.location.href = '';return false");[/quote] tnggal ganti az [color=red]message[/color] d save d js bagian C smogga ngebantu... ^_^

Last edited by deeucul (2008-02-21 04:37:02)

Board footer

© 2024 F Talk

Current time is 19:40

[ 13 queries - 0.147 second ]
Privacy Policy