Welcome Guest ( Log In | Register)



5 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> Deactivate right click, in internet explorer
djleli
post Aug 9 2004, 09:49 PM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 24
Joined: 9-August 04
Member No.: 753



CODE
<style onload="function noRightClick() {if(event.button==2)
{alert('CopyrightŪ by Bullit')}}document.onmousedown=noRightClick"> </style>


OR

CODE
<noscript>You need to have JavaScript enabled in order to view this page correctly!</noscript>
<script type="text/javascript"><!--
var message="don't do that";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
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("alert(message);return false")
//--></script>
Go to the top of the page
 
+Quote Post
chinfo
post Aug 10 2004, 01:51 AM
Post #2


Advanced Member
*******

Group: Members
Posts: 119
Joined: 19-July 04
Member No.: 140



That script, or more specifically the behavior it supports, its useless as there a lot of ways to get around the no right button trick. Copyright concerns are legitimate, but it also annoys visitors if you try to control any of the functionality inherent to their end.
Go to the top of the page
 
+Quote Post
djleli
post Aug 10 2004, 11:11 AM
Post #3


Newbie [Level 1]
*

Group: Members
Posts: 24
Joined: 9-August 04
Member No.: 753



yeah a lot of ppl know that you can go around this by viewing sources or other ways but there are many ppl that never knew about this and so they will be cot in it. ALso it makes te site a bit more pro
Go to the top of the page
 
+Quote Post
ICE-XG
post Aug 22 2004, 08:09 PM
Post #4


Premium Member
********

Group: Members
Posts: 195
Joined: 18-August 04
From: Texas
Member No.: 844



that's kool. Thanks 4 ur help.
Go to the top of the page
 
+Quote Post
zip_mc
post Aug 23 2004, 05:49 AM
Post #5


Super Member
*********

Group: Members
Posts: 316
Joined: 31-July 04
From: Australia
Member No.: 344



i use to think it looked pro but now i think its more a tackie affect... for some reason effects like that and things like stuff chasing you cursor i really dont like... just gets in the way when i'm reading somthing on the page...
Go to the top of the page
 
+Quote Post
Zenchi
post Aug 23 2004, 05:55 AM
Post #6


Super Member
*********

Group: Members
Posts: 498
Joined: 23-August 04
Member No.: 878



Two ways I can think of gettings around this off the top of my head:

Highlight + Ctrl & C

View Source


Sheesh, when I did this one day in class, it amazed my Science Teacher.

How sad, eh?

Although, I've never seen that <style> script before, I'm going to go do a search on it. smile.gif
Go to the top of the page
 
+Quote Post
hasa
post Aug 25 2004, 07:56 AM
Post #7


Newbie [Level 1]
*

Group: Members
Posts: 13
Joined: 1-August 04
Member No.: 404



The best right click protection what I find on Internet are:
oncontextmenu="return false" ondragstart="return false" onselectstart="return false"

Put this code direct in body element.
For example:
<body topmargin="0" leftmargin="0" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

</body>


hasa smile.gif
_ _ _ _ _ _ _ _ _ _ _ _
The only true success is when you live fife your own way
Go to the top of the page
 
+Quote Post
CorpseGrinder
post Sep 14 2004, 07:47 AM
Post #8


Member [Level 2]
*****

Group: Members
Posts: 75
Joined: 14-September 04
Member No.: 1,104



i think disableing right clicking is a good way to protect some of your creations from being stolen from newbies that right click "save target/picture as heh"
Go to the top of the page
 
+Quote Post
Kovi
post Sep 15 2004, 07:59 PM
Post #9


Newbie [Level 1]
*

Group: Members
Posts: 21
Joined: 14-September 04
Member No.: 1,106



But it's also completely useless and will also annoy your users. I reccommend against using anything to disable rightclicking, since it's so easy to get around them. And, yes, even newbies can figure them out. Screenshotting, anyone?

Also, you're disabling several helpful, legit uses for rightclicking, such as 'copy link location' and 'open in a new window/tab'. Or rightclicking and selecting 'add to favorites/bookmarks', which surely is something that you would want your users to do, heh.
Go to the top of the page
 
+Quote Post
nbop
post Sep 17 2004, 06:13 PM
Post #10


Newbie
*

Group: Members
Posts: 5
Joined: 12-September 04
Member No.: 1,089



CODE
<body topmargin="0" leftmargin="0" oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> </