Click to See Complete Forum and Search --> : no rigth clicking
cherrybomb
05-31-2003, 09:36 PM
hi i'm new to the site and there's this code that i'm looking for it stop's ppl from rigthclicking on your webpage. when the person rigth click's a popup apears. and also the person is unable to steal any image's when useing internet explore. plz if you know this code help me out . thank you.
cherrybomb
06-01-2003, 01:16 AM
ty for your help but the code didnt work , i just see the code when i look at my page . someone had give me that code before. maybe it doesnt work because it's a community site. but i see this code on ppl pages . here what the code kinda looks like . <body oncontextmenu=`alert("text");return false` onselectstart=`return
false`>. but with this code ppl useing internet explore can left click and save your suff. someone plz help me
AdamGundry
06-01-2003, 06:27 AM
Did you put <script type="text/javascript"> before the code and </script> after the code Dave gave you?
This will not, of course, stop anyone with any knowledge from getting your code/images.
Adam
Tea.Cup
06-01-2003, 07:07 AM
thats all
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
Charles
06-01-2003, 07:13 AM
Originally posted by Tea.Cup
This works Not on my broweser.
khalidali63
06-01-2003, 08:02 AM
Originally posted by cherrybomb
code ppl useing internet explore can left click and save your suff. someone plz help me
You can not save your HTML + JavaScript + CSS code,since its all meant to be open source material.There are several ways that people can use to save the content on your pages.What you are trying to do is a fruiteless effort and I would not bother providing a solution for something that can not be worked.On top of that its sucha nuisance that I'd never want to have it on any of the pages I created or will create..:-)
Dark Dragon
06-01-2003, 08:02 AM
I tried that same thing too with one of my sites....but as I tested it I realized how irritating it is...also I realized that it may not work on those using a Mac too.
I also tried to make pages into one big jpg so people couldn't select a image but making something like that is also a monumental pain in the south end too.
You could try adding a copyright symbol...sometimes that is a deterrent...;)
For now you just cannot win againts those who wanna steal from you.:rolleyes:
diamonds
06-01-2003, 09:15 AM
If you have PHP or some other dynamic programing language supporting the RAW editing of images, than (i think) you could say somthing like this:
If the url the image is on does not equel http://www.my site here.com, than make a black rectangle accross the whole image.
also, you can do it with .hactass files.
BUT this does not stop people from using iframes.
how about that code? you can store it inside of a flash file, if you didn't know! but, than the script will not work for people without flash.
Lesson learned: If you do not want people taking "stuff" you publish, don't publish it at all, at least in HTML where people MUST have the ability to get the code. :(