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.

Website Design Forum


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



Freelance Jobs

Reply
Disabling Right Click for Text and Images
Old 08-14-2009, 06:06 PM Disabling Right Click for Text and Images
Average Talker

Posts: 24
Name: Scott
Trades: 0
I Googled a few codes, and when I tried to put them into my header, they didn't turn out right.

I know nothing about JavaScripts or how they work, but I can handle inserting a HTML Code or any kind of Code in the appropriate place.

I'm still using Frontpage as my editor at the moment, (Yes I know, I hate it too) but it's the easiest and quickest thing for me to use at the moment.

What do I need to do if I wish to disable these two features.

Thanks,

Go Hooter Go
GoHooterGo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-14-2009, 06:34 PM Re: Disabling Right Click for Text and Images
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Total waste of time. The scripts don't stop anyone from stealing your text or images, but do annoy users who use the RC conext menu for legitimate purposes.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-14-2009, 06:38 PM Re: Disabling Right Click for Text and Images
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Anyone who wants to get the content you're trying to "protect" by disabling the right click will get it. All you're going to do by putting that in is put off legitimate visitors by screwing with their browsers. If you absolutely MUST put it in there are multiple scripts and tutorials a mere Google search away.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 08-16-2009, 10:37 AM Re: Disabling Right Click for Text and Images
Leopard's Avatar
Extreme Talker

Posts: 242
Trades: 0
Put this in the body tag:
Code:
ondragstart="return 
false" onselectstart="return false"
It will end up looking like this:
Code:
<body ondragstart="return false" onselectstart="return false">
Source: http://www.hypergurl.com/norightclick.html
Leopard is offline
Reply With Quote
View Public Profile
 
Old 08-16-2009, 12:34 PM Re: Disabling Right Click for Text and Images
Super Moderator

Posts: 1,577
Location: Kokkola, Finland
Trades: 1
Quote:
Originally Posted by Leopard View Post
Put this in the body tag:
Code:
ondragstart="return 
false" onselectstart="return false"
It will end up looking like this:
Code:
<body ondragstart="return false" onselectstart="return false">
Source: http://www.hypergurl.com/norightclick.html
this and all those methods are a waste of time and all you do is annoy users who want to right click for legitimate reasons.

watermarking is the only worthwhile thing.

edit: oops should have just said read chris's post
davemies is online now
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 08-16-2009, 12:41 PM Re: Disabling Right Click for Text and Images
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
And for those of you who think javascript is the answer, you're not thinking far enough. If someone is determined to take your stuff, all they have to do is disable javascript in their browser, and your silly no-right-click script is useless and they can take whatever they want!

I use Right-click in FF for the context menu, many extensions, including mouse gesture navigation. It drives me nuts to come across a site where someone has disabled this functionality with their ill-advised scripts. I leave those sites, never to return!
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-16-2009, 07:06 PM Re: Disabling Right Click for Text and Images
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Besides, there are not a lot of ways you can prevent the user from looking at the source code of the page. If you really want to protect your images, use watermarking.

But whatever you do: don't block the right-click. Not only does it hinder the viewing pleasure of the users (I have a lot of plugins that make use of the right-click functionality), but it's also a very insecure method to secure your images.
__________________
if($stevej == "helpful") { $talkupation += $user_power; }

Last edited by stevej; 08-16-2009 at 07:08 PM..
stevej is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Disabling Right Click for Text and Images
 

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.42508 seconds with 12 queries