Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
java script on how to disable right click on my page?
Old 05-21-2008, 03:37 PM java script on how to disable right click on my page?
Banned

Posts: 3
Name: ethan tinder
Trades: 0
Hi...

I am doing a simple HTML project with a little java script on it,
but I get something difficult on java script....
how can I disable right click on my page? or to prevent users to copy images on my pages?
I need code for this or just an idea in order to get this...

thanks....
ethantinder is offline
Reply With Quote
View Public Profile Visit ethantinder's homepage!
 
 
Register now for full access!
Old 05-21-2008, 05:43 PM Re: java script on how to disable right click on my page?
Average Talker

Posts: 21
Name: Mitch
Trades: 0
My suggestion, because javascript can always be disabled, thus bypassing any javascript you have put on your page. Create a div, use css to put the image you want protected as your background image and then place a completely transparent div inside the div, which will lay it on top of the image, thus anytime someone tries to right click and copy they get a empty image.

Still doesn't stop print screen but...
__________________
-Mitch

Please login or register to view this content. Registration is FREE

Portfolio:
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Mviner04 is offline
Reply With Quote
View Public Profile
 
Old 05-21-2008, 07:16 PM Re: java script on how to disable right click on my page?
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Ethan if you search there's plenty of scripts available, but like Mitch said javascript can easily be disabled so they really aren't effective.

The truth is there's little to nothing you can do to prevent people from saving your images.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-24-2008, 10:51 AM Re: java script on how to disable right click on my page?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
All I have to do is click "file", "save page" and all the images are instantly on my computer. Put watermarks on your images if you are selling them, then give people the real deal if they pay.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to java script on how to disable right click on my page?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19124 seconds with 12 queries