|
|
| Author |
Message |
Blaq
Joined: 27 Feb 2004 Posts: 45
|
Posted: Mon Mar 01, 2004 9:30 am Post subject: No Right Click Script III (No Alert) |
|
|
Simply add the following code to the <BODY> section of your web page (Press Ctrl C after selecting code to copy it):
<script language=JavaScript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script> |
|
| Back to top |
|
 |
sam Banned
Joined: 01 Mar 2004 Posts: 51 Location: IL
|
Posted: Mon Mar 01, 2004 1:17 pm Post subject: |
|
|
Blaq-- can you please put your code in the code tags?  _________________
 |
|
| Back to top |
|
 |
macabist Banned
Joined: 01 Mar 2004 Posts: 35
|
Posted: Mon Mar 01, 2004 1:55 pm Post subject: |
|
|
THX
very useful in my site |
|
| Back to top |
|
 |
i03m
Joined: 02 Mar 2004 Posts: 6
|
Posted: Tue Mar 02, 2004 1:12 pm Post subject: |
|
|
Very useful. thank you  |
|
| Back to top |
|
 |
|