![]() |
Web Developing Guru's....need help.
Hey all, I have been looking and looking for a script that disables the right-click when you go to a webpage. I tried writing one but my java skills aren't advanced enough. Any idea's where I can find one??
thanks in advance..mac |
Here ya go...
copy and paste: <!-- STEPS TO INSTALL NO RIGHT CLICK: 1. Copy the coding into the HEAD of your HTML document <!-- Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript1.1"> <!-- Original: Martin Webb (martin@irt.org) --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin 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("Sorry, you do not have permission to right click."); return false; } return true; } document.onmousedown=right; document.onmouseup=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (document.layers) window.captureEvents(Event.MOUSEUP); window.onmousedown=right; window.onmouseup=right; // End --> </script> </HEAD> ------------------ Joe! 1988 GT, 167,000 miles!!! 13.71@105mph Check out my listing! Click here! Or my website: www.joe4speed.com 1999 Ninja ZX-6R 10.32@135mph! 1993 Olds Eighty Eight LSS |
Thank you....also helped me find a new java site. Very appreciated.
|
http://www.mustangworks.com/msgboard/smile.gif No problem! that's a cool site too.. lots of goodies!
------------------ Joe! 1988 GT, 167,000 miles!!! 13.71@105mph Check out my listing! Click here! Or my website: www.joe4speed.com 1999 Ninja ZX-6R 10.32@135mph! 1993 Olds Eighty Eight LSS |
All times are GMT -5. The time now is 08:49 AM. |