NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Javascript: Silent No Right Click

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 08-05-2003, 01:42 PM THREAD STARTER               #1 (permalink)
First Time Poster!
Join Date: Aug 2003
Posts: 1
Web X Designs is an unknown quantity at this point
 



Javascript: Silent No Right Click


this will stop stupid theives but smart ones can still steal your work but heres the code it blocks right click yet it doesnt have the annoying alert message
Code:
<script language=JavaScript>
<!--
//Code by Justin / Web X Designs
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>
__________________
http://webx.digitaldoozie.com/interface.jpg
Owner Of Web X Designs http://www.ihtml.tk
Web X Designs is offline  
Old 08-05-2003, 01:49 PM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
nice, is it ns and mozilla compatible?
adam_uk is offline  
Old 08-05-2003, 02:55 PM   #3 (permalink)
NamePros Member
Join Date: Jul 2003
Posts: 118
web guru is an unknown quantity at this point
 



Good man!!
web guru is offline  
Old 08-05-2003, 08:58 PM   #4 (permalink)
NamePros Regular
Join Date: Jun 2003
Location: California
Posts: 245
Alpha is an unknown quantity at this point
 



Thanks for posting it. It shall prove useful
__________________
--Alpha
Alpha is offline  
Old 08-06-2003, 07:27 AM   #5 (permalink)
NamePros Member
Join Date: Jul 2003
Posts: 68
crEA-tEch is an unknown quantity at this point
 



thing is.. just click view at the top of your browser... then click source.. lol - has the same effect

also ... didnt we all view source and nick stuff off other peoples pages... it's all part of the way of the internet.. don't be spoil sports

nick
__________________
M-Factor
crEA-tEch
crEA-tEch is offline  
Old 08-06-2003, 02:57 PM   #6 (permalink)
NamePros Regular
Join Date: Jun 2003
Location: California
Posts: 245
Alpha is an unknown quantity at this point
 



But view sorce doesn't allow you to download stuff off people's pages.
__________________
--Alpha
Alpha is offline  
Old 08-06-2003, 09:09 PM   #7 (permalink)
NamePros Regular
Join Date: Sep 2002
Location: Canada
Posts: 481
DarkDevil is an unknown quantity at this point
 



View source, in most instances, will supply you with a url to all images contained on said page. There is no way to be 100% safe from rippers.
__________________
Sometimes I lay awake at night and I ask "Where have I gone wrong?" Then a little voice says "This is going to take more than one night"
DarkDevil is offline  
Old 12-30-2003, 03:48 PM   #8 (permalink)
Senior Member
 
Kodeking's Avatar
Join Date: Jun 2003
Location: Naperville Illinois
Posts: 1,786
Kodeking is just really niceKodeking is just really niceKodeking is just really niceKodeking is just really nice
 



Quote:
Originally posted by DarkDevil
View source, in most instances, will supply you with a url to all images contained on said page. There is no way to be 100% safe from rippers.
Yup, View Source, copy and paste url
__________________
Quote:
Clan-Forums.com >> $30 BoardingForum.com >> $100
TalkWebHosting.com >> $200 AvoidChapter13.com >> $100
Send PM to make lesser offers on the above names.
Kodeking is offline  
Old 01-03-2004, 01:15 PM   #9 (permalink)
Senior Member
 
InteractAsia's Avatar
Join Date: Nov 2003
Location: Merlion City
Posts: 1,208
InteractAsia has a spectacular aura aboutInteractAsia has a spectacular aura about
 



Quote:
Originally posted by DarkDevil
View source, in most instances, will supply you with a url to all images contained on said page. There is no way to be 100% safe from rippers.
true unless you have one of those html encryption software
__________________
ermm..do i need to put my sig here?
Free Short URL | Free Reseller Hosting | Free cPanel Blog Hosting
Hottest New Posters & Prints
InteractAsia is offline  
Old 01-07-2004, 04:35 PM   #10 (permalink)
NamePros Regular
Join Date: May 2003
Location: USA
Posts: 609
Shaggy is on a distinguished road
 



Well...you also can save an image through veiw source. This script really helps with someone not stealing your images...
__________________
AllOfftopic.com - The name says it all. A forum that is uncensored, fun, and you can post anything you want. :rolleyes:
Shaggy is offline  
Old 02-06-2004, 03:35 PM   #11 (permalink)
NamePros Expert
 
Anthony's Avatar
Join Date: Dec 2003
Location: NYC
Posts: 9,132
Anthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant future
 

Member of the Month
October 2004

Quote:
Originally posted by Shaggy
Well...you also can save an image through veiw source. This script really helps with someone not stealing your images...
True. Will deter casual thieves.
Anthony is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:24 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger