navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

No Right Click with image

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> No Right Click with image
Page: [1]
 
cantes903

 

Posts: 10
Joined: 10/5/2005
Status: offline

 
No Right Click with image - 2/11/2006 15:49:02   
Hey! I want to know if it is possible, and if so how, to use the no right click option and put an emoticon in the message. So basically I want it to say something like:

"Oops, sorry. No right click! :)"

I'd appreciate input.
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: No Right Click with image - 2/11/2006 16:04:12   
Hi - there is a basic answer. Yes it can be done, but it can also be worked around pretty easily.
If you realise that fact (people can still take your images) have a quick search of the forum for "right click images" for other previous discussions

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to cantes903)
cantes903

 

Posts: 10
Joined: 10/5/2005
Status: offline

 
RE: No Right Click with image - 2/11/2006 16:11:45   
Yes, I know it can be worked around however, I'm doing a site for a friend who wants it. I have scripts to do the basic "no right click" I want to add a graphic in the pop up message. I can't find a script with that in it. I've searched in here and I can find references to the basic scripts but not adding an image into the message.

(in reply to Spooky)
d a v e

 

Posts: 4170
Joined: 7/24/2002
From: England (but live in Finland now)
Status: online

 
RE: No Right Click with image - 2/11/2006 17:00:40   
quote:

Yes, I know it can be worked around however, I'm doing a site for a friend who wants it.
does that mean that it can't be worked around then if it's for a friend? ;)

how about one that says
"use print screen"
"look in your browser cache"
"use firefox"
"use opera"
"disable javascript"

also what about users that use their right click for 'legitimate' uses? i think the trouble you're going to trying to find a script that does what you want is a waste of time, but hey it's your time!
sorry if this seems a bit rude but you seem to be missing the point: putting images on the web means they can be taken easily and putting a message there saying they can't is both annoying and a waste of time.

:)

_____________________________

David Prescott
Gekko web design

(in reply to cantes903)
dpf

 

Posts: 7126
Joined: 11/12/2003
From: India-napolis
Status: offline

 
RE: No Right Click with image - 2/11/2006 17:04:50   
quote:

putting images on the web means they can be taken easily
...sort of like newspapers and magazines saying "no scissors allowed!!!"

_____________________________

Dan

(in reply to d a v e)
cantes903

 

Posts: 10
Joined: 10/5/2005
Status: offline

 
RE: No Right Click with image - 2/11/2006 17:07:26   
What's with you people? Why bother having a forum to answer questions if you don't want to answer them? I don't care what you think of the no right click feature. I'm not missing the point that, yes, it can be worked around. I KNOW that, I've DONE that. Most anyone who works with graphics knows that. As for your sarcastic comment about "for a friend", it shouldn't matter to you all WHO wants to do this. As for myself if it were my site I wouldn't bother with it but since the person I'm making it for wants it then I'll do it.

C'mon people, get over yourself and help for Gods sake! I'll take my question elsewhere to people who are REALLY there to help! Thanks for nothing.

BTW, Dave YES you are being rude and you are the one missing the point.

(in reply to cantes903)
dpf

 

Posts: 7126
Joined: 11/12/2003
From: India-napolis
Status: offline

 
RE: No Right Click with image - 2/11/2006 17:11:59   
quote:

to answer questions
..ok, to answer your question, the javascript to disable right click calls the alert method which, I believe, is text only and thus not able to display and image. If you are good at object-oriented programing, you might be able to create a new class that displays to a standard window, instantiate an instance of that class and utilize standard window functionality but im not sure.

_____________________________

Dan

(in reply to cantes903)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: No Right Click with image - 2/11/2006 17:23:30   
I'd check out JavaScript Source. I know they have plenty of 'no right click' scripts but I'm not sure if you can put an image in there as well. Would be good if you could though.

Edit: Hotscripts.com have got quite a few, including some that work on images too. Can't find any where you can include an image tho.

Grrrr! You've got me intregued now - I can see I'll get no work done tonight! (doesn't take much to distract me tho! :) )

< Message edited by womble -- 2/11/2006 17:49:32 >


_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to cantes903)
cantes903

 

Posts: 10
Joined: 10/5/2005
Status: offline

 
RE: No Right Click with image - 2/11/2006 17:57:02   
Thank you very much.

(in reply to womble)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: No Right Click with image - 2/11/2006 18:20:40   
Not one with an image, but one is just soooooo cool I think I may have to use it on one of my pages just for the effect :)

No Right-Click from Hell

Unfortunately it only works in IE, but it sure is a deterent! :)
(warning: read the instructions before you try it out :))

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to cantes903)
spitfire

 

Posts: 424
Joined: 8/6/2005
Status: offline

 
RE: No Right Click with image - 2/11/2006 18:24:05   
cantes903

Did you take Spooky's advice and search the forum? Spooky probably helps more people and answers more questions than most forum moderators I know.

I just did a quick search and found this thread on disabling right-click. The third post down offers a suggestion on how to treat an image to make it irritatingly, frustratingly, annoyingly difficult to copy. All you need to do is make your message and the smiley an image. But there are some excellent ideas later on.

(in reply to cantes903)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: No Right Click with image - 2/11/2006 18:52:30   
That's a good thread Spit, I seem to remember having seen that before but didn't take much notice at the time, but will come in v. useful for a client who's concerned about getting their pics pinched.

<evil_hat_on>I like the screaming pop-up though just for the sheer silliness and irritation value. Okay, so it only works in IE, ain't gonna stop anyone who's determined to get the pic and is hardly accessible etc., but hell, it's fun! :)</evil_hat_on>

Content now I've found something fun, I can now go to bed a happy Womble!

:)

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to spitfire)
cantes903

 

Posts: 10
Joined: 10/5/2005
Status: offline

 
RE: No Right Click with image - 2/11/2006 19:03:55   
Spitfire-

I did search the forum and as I said found references to the "no right click" or a whole page or a single image. I'm not sure what you are trying to say. I'm not looking (exactly) for a way to "protect" images. I simple am looking for a solution to something someone wants me to do for them. I'll show you exactly what I want to do.

First the actual alert box when you use a no right click script:

:)

And this is what I'm trying to do:

:)

(in reply to spitfire)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: No Right Click with image - 2/11/2006 19:12:37   
Not very helpful I know (just me thinking out loud), but I'm guessing that what you need is a script that'll let you put html tags in the alert message. I'm only just starting to figure out javascript so I may be way off base here, like I said, just me thinking out loud.

You've got me intregued now! :)

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to cantes903)
cantes903

 

Posts: 10
Joined: 10/5/2005
Status: offline

 
RE: No Right Click with image - 2/11/2006 19:15:05   
K thanks. I'll look around and see if I can find something like that.

(in reply to womble)
cantes903

 

Posts: 10
Joined: 10/5/2005
Status: offline

 
RE: No Right Click with image - 2/11/2006 19:38:28   
Hey, I was thinking. Can I do an OnClick for the right button to pull up a graphic? Cuz then I could just make a better draft than this:

:)

So is that right, I can do that?
(Sorry if this is a totally stupid question..I'm not very proficient with javascript.)



always look beyond the obvious...:)


Christy

(in reply to cantes903)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: No Right Click with image - 2/11/2006 19:47:21   
Um, not sure - it might work. I'd be interested to know if it does (I've only just started delving into javascript rather than copying 'n' pasting).

I suppose if you could get the OnClick to trigger a new window (setting the size etc. so it's the same effect as an alert) that might work...:)

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to cantes903)
Kitka

 

Posts: 2520
Joined: 1/31/2002
From: Australia
Status: offline

 
RE: No Right Click with image - 2/12/2006 1:07:56   
quote:

No Right-Click from Hell


Oooo, that is diabolical womble :) I agree it'd be fun to try on a real site ... trouble is though, I'd want to be a fly on the wall of the person/people who get caught! :)

On a side note: WOW am I glad to be using Firefox! :) All the pop-ups and ads on that page in IE, which are normally hidden from my view in FF, were yucky :)

I LOVE Firefox :)

_____________________________

Kitka
**It is impossible to make anything foolproof because fools are so ingenious.**


(in reply to womble)
d a v e

 

Posts: 4170
Joined: 7/24/2002
From: England (but live in Finland now)
Status: online

 
RE: No Right Click with image - 2/12/2006 2:22:28   
imo i think you would be better explaining to your friend the futility of putting this on their site *IF* they believe it will prevent people.

if you've already done that and they still want to do it then go ahead.

i was only being mildly sarcastic (hence the wink and the smiley at the end) and i was only telling you what you needed to hear, rather than what you wanted to hear (even though it seems you already knew!). sometimes the best advice isn't what you want to hear :)

i think i was exactly on the point :)

anyway seems like you've been offered some possible script solutions so hope my one post doesn't put you off this whole forum

dave :)

_____________________________

David Prescott
Gekko web design

(in reply to Kitka)
coreybryant

 

Posts: 2480
Joined: 3/17/2002
From: Castle Rock CO USA
Status: offline

 
RE: No Right Click with image - 2/12/2006 12:13:34   
Something like
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<script language=JavaScript>
<!--


function clickIE4(){
if (event.button==2){
 window.open('http://www.google.com/images/firefox/google.gif', '', 'width=100,height=100,top=200,left=200');
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
 window.open('http://www.google.com/images/firefox/google.gif', '', 'width=100,height=100,top=200,left=200');
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("window.open('http://www.google.com/images/firefox/google.gif', '', 'width=100,height=100,top=200,left=200')")

// --> 
</script>


<body>
</body>

</html>
could be a start.

_____________________________

Corey R. Bryant
Merchant Accounts | Toll Free Numbers | Expression Web Blog

(in reply to d a v e)
coreybryant

 

Posts: 2480
Joined: 3/17/2002
From: Castle Rock CO USA
Status: offline

 
RE: No Right Click with image - 2/12/2006 12:21:03   
Sorry this will stop the context menu as well
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<script language=JavaScript>
<!--


function clickIE4(){
if (event.button==2){
 window.open('http://www.google.com/images/firefox/google.gif', '', 'width=100,height=100,top=200,left=200');
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
 window.open('http://www.google.com/images/firefox/google.gif', '', 'width=100,height=100,top=200,left=200');
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("window.open('http://www.google.com/images/firefox/google.gif', '', 'width=100,height=100,top=200,left=200');return false")
// --> 
</script>


<body>
</body>

</html>


_____________________________

Corey R. Bryant
Merchant Accounts | Toll Free Numbers | Expression Web Blog

(in reply to coreybryant)
cantes903

 

Posts: 10
Joined: 10/5/2005
Status: offline

 
RE: No Right Click with image - 2/12/2006 12:26:02   
Cool! Thank you..that's the closest I've gotten to what I'm trying to do. I appeaciate all your suggestions!


(in reply to coreybryant)
coreybryant

 

Posts: 2480
Joined: 3/17/2002
From: Castle Rock CO USA
Status: offline

 
RE: No Right Click with image - 2/12/2006 12:44:19   
Anytime - good luck with everything!

_____________________________

Corey R. Bryant
Merchant Accounts | Toll Free Numbers | Expression Web Blog

(in reply to cantes903)
Page:   [1]

All Forums >> Web Development >> General Web Development >> No Right Click with image
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts