home *** CD-ROM | disk | FTP | other *** search
- <ccResource>
- <ccTitle>
- Right Click Prevent
- </ccTitle>
- <ccCategory>
- Browser
- </ccCategory>
- <ccDescription>
- Use this script to help prevent users from stealing your content. Only works in Internet Explorer
- </ccDescription>
- <ccInstructions>
- The code goes only inside the BODY tags. You can change the items below to suit your needs.
- </ccInstructions>
- <ccHeadContent>
-
- </ccHeadContent>
- <ccBodyContent>
- <script language="JavaScript">
- function right(e) {
- if (navigator.appName == 'Netscape' &&
- (e.which == 3 || e.which == 2))
- return false;
- else if (navigator.appName == 'Microsoft Internet Explorer' &&
- (event.button == 2 || event.button == 3)) {
- alert("Please don't steal my stuff!!!");
- return false;
- }
- return true;
- }
- document.onmousedown=right;
- if (document.layers) window.captureEvents(Event.MOUSEDOWN);
- window.onmousedown=right;
- </script>
- </ccBodyContent>
- <ccElementContent>
-
- <ccElementName></ccElementName>
- <ccElementAction></ccElementAction>
-
- </ccElementContent>
- <ccExtraData>
-
- </ccExtraData>
- </ccResource>