Pages: 12

  2008-05-14 06:44:05

rebora2007
» FTalkAddict
FTalk Level: zero
300
0
1969-12-31

here my code [code]/** * Who's Right Click CBOX * Copyright 2008 by FeRuZZ © http://profiles.friendster.com/feruzz * Requirement: addBox function @ http://h1.ripway.com/mumbhaki/addBoxGenerator.html

[quote]if (!attachOnLoadHandler(function() { wRClicked();})) window.onload = function() { wRClicked();}; function wRClicked() { /*if(pageViewerID == pageOwnerID)*/ WHORC.init(); } if (typeof WHORC == "undefined") { WHORC = {}; } WHORC = { rccboxform: [], message: "MESSAGE HERE ", base: { "whorcCbox": ["www5", "244752", "39ths0"] }, init: function() { for (val in this.base) { this.rccboxform = "<div style='background:url(URL UR IMAGE) no-repeat fixed center;>"+"<iframe frameborder=\"0\" width=\"330\" height=\"278\" 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.init("WHOS RIGHT CLICK","<div id=\""+val+"\" align=\"center\">"+this.rccboxform+"</div>","rccboxform",/friends/i,null); } 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 = { 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) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); else if (x == "above") { var ul = this.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]

Pages: 12

Board footer

© 2024 F Talk

Current time is 10:52

[ 12 queries - 0.013 second ]
Privacy Policy