StarryIlove
07-22-2004, 11:35 AM
Ok I got the code for no right click but it doesn't stop ppl using netscape. How do I get it to do that?
Thanks
starry :star:
Thanks
starry :star:
|
View Full Version : No right click StarryIlove 07-22-2004, 11:35 AM Ok I got the code for no right click but it doesn't stop ppl using netscape. How do I get it to do that? Thanks starry :star: Sheila 07-22-2004, 11:45 AM Even if it did work on Netscape, people can still get around the No Right Click. There is no 100% way of stopping people from viewing your source. StarryIlove 07-22-2004, 12:11 PM Yeah I know that but I want to make it not so easy. Reduce's the risk. 4eva_wishes 07-23-2004, 07:29 AM well, I'm not sure if this works, but try it ^___^ <script name='Javascript'> <!-- function right( val ) { if (navigator.appName == 'Netscape' && (val.which == 3 || val.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("YO YOU! THIS IS COPYRIGHTED YA'KNOW!"); 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; //--> </script> Orakole 07-24-2004, 05:09 PM There is a simpler way to add the no-right-click to your site without an annoying message popping up on the screen. Just put the following tag within the BODY tag of your page... oncontextmenu="return false" Afterwards, try right-clicking on your page..Absolutely nothing should happen... StarryIlove 07-25-2004, 07:10 PM Neither of those work :( |