Javascripts > Javascript Alerts > No Right Click Deluxe
Script Title: No Right Click Deluxe
Description: This mind-warping script disables the right-click function and makes them have to order it from you!
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script language="JavaScript"> <!-- Beginning of JavaScript - // Urs Dudli and Peter Gehrig. // www.javafile.com function buttoncheck(e) { if(document.all && event.button==2) { document.all.orderwindow.style.visibility = "visible" alert("Please order my HTML-source by email!") return false } if(document.layers && e.which==3) { document.orderwindow.visibility = "visible" alert("Please order my HTML-source by email!") return false } } function sendmail() { if(document.all) { document.all.orderwindow.style.visibility = "hidden" document.forms[0].submit() } if(document.layers) { document.orderwindow.visibility = "hidden" document.orderwindow.document.forms[0].submit() } } function closewindow() { if(document.all) { document.all.orderwindow.style.visibility = "hidden" } if(document.layers) { document.orderwindow.visibility = "hidden" } } if(document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown = buttoncheck; // --> </script>
Copy the following code between the <BODY></BODY> tags of your html page.<div id = "orderwindow" style = "position:absolute; top:10px; left:220px; visibility:hidden"> <form action="mailto:info@someemail.com"> <table width=300 cellpadding=4 cellspacing=0 border=0> <tr> <td COLSPAN=2 ALIGN=MIDDLE bgcolor=0000AA><FONT face=Verdana size=1 color=FFFFFF> <b>Your website is really cool.<br>Please mail me your source-code.</b></font> </td> </tr> <tr> <td align=right bgcolor=0000FF><FONT face=Verdana size=1 color=FFFFFF> lastname: </td> <td align=left bgcolor=0000FF><FONT face=Verdana size=1> <input type="Text" name="lastname" size="20" maxlength="40"> </td> </tr> <tr> <td align=right bgcolor=0000FF><FONT face=Verdana size=1 color=FFFFFF> fistname: </td> <td align=left bgcolor=0000FF><FONT face=Verdana size=1> <input type="Text" name="firstname" size="20" maxlength="40"> </td> </tr> <tr> <td align=right bgcolor=0000FF><FONT face=Verdana size=1 color=FFFFFF> country: </td> <td align=left bgcolor=0000FF><FONT face=Verdana size=1> <input type="Text" name="country" size="20" maxlength="40"> </td> </tr> <tr> <td align=right bgcolor=0000FF><FONT face=Verdana size=1 color=FFFFFF> e-Mail: </td> <td align=left bgcolor=0000FF><FONT face=Verdana size=1> <input type="Text" name="email" size="20" maxlength="40"> </td> </tr> <tr> <td align=right bgcolor=0000FF><FONT face=Verdana size=1 color=FFFFFF> <input type="button" value="send request" onClick="sendmail()"> </td> <td align=left bgcolor=0000FF><FONT face=Verdana size=1> <input type="button" value="close window" onClick="closewindow()"> </td> </tr> </table> </div> </form>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email