No ****

Any problem with javascript can be discussed here.
richman
Posts: 40
Joined: Fri Aug 25, 2006 5:23 am

No ****

Post by richman »

I tried to put it on my page and it didnt wokr


SHAdmin
Posts: 2089
Joined: Sat Dec 18, 2004 11:28 am
Contact:

Post by SHAdmin »

Please post the script here so we can take a look at it to tell you why it wouldnt have worked.
richman
Posts: 40
Joined: Fri Aug 25, 2006 5:23 am

The Sript

Post by richman »

The Script Is:...

Code: Select all

<script language="JavaScript">

 <!--
// No **** script.
// Find more great scripts and applets at the JavaFile!
// http://www.javafile.com
// Do not delete this header!

var message="Sorry, we don't allow that on this site!."; // Put your message for the alert box between the quotes.

// Don't edit below!

function ****(e) {
if (****.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (****.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (****.layers) {
****.captureEvents(Event.MOUSEDOWN);
}
****.onmousedown=****;
// --> 

</script>
Stwong
Posts: 7
Joined: Wed Sep 13, 2006 3:29 am

Post by Stwong »

No offense, but don't bother. It's always possible to view the page's source, whether by using a packet sniffer or by simply using a menu, and browsers like Firefox won't let you prevent them from using the right-**** menu. If you don't want something horribly copied and ripped, don't release it on the internet. If you want to spawn a new trend / meme and get rich off of it, put it on the internet.

As for what the problem could be: is it in between your <head></head> tags?
Chris
Posts: 23
Joined: Thu Oct 05, 2006 7:09 am

Post by Chris »

Or maybe try another script from another website. I know one that worked a while ago. Can't remember what it is now though.
Holograph
Posts: 14
Joined: Wed Oct 11, 2006 7:52 am

Post by Holograph »

Yeah Chris, I gave it to you :D

Ill post it below.

Code: Select all

<script language=JavaScript>
<!--

//Disable right **** script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function ****() {if (****.all) {(message);return false;}}
function ****(e) {if 
(****.layers||(****.getElementById&&!****.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (****.layers) 
{****.captureEvents(Event.MOUSEDOWN);****.onmousedown=****;}
else{****.onmouseup=****;****.oncontextmenu=****;}

****.oncontextmenu=new Function("return false")
// --> 
</script>
I also have a script that disables people copying your text.


Code: Select all

<SCRIPT language="JavaScript1.2">
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit <http://www.dynamicdrive.com> for this script
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
****.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
****.onmousedown=disableselect
****.****=reEnable
}
</SCRIPT>
Enjoy
frisky168
Posts: 28
Joined: Sun Mar 11, 2007 11:44 am

Protect you content

Post by frisky168 »

I like this script because it will disable right **** aka stealing stuff off my site.

Copy and Paste the following code into the BODY of your web page. Insert your own copyright information where indicated in red.




<SCRIPT language="JavaScript">
<!-- Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development
var message="Copyright 2000 by Your Site. WARNING ! All content contained within this site is protected by copyright laws. Unauthorized use of our material is strictly prohibited.";
function ****(e) {
if (****.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (****.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (****.layers) {
****.captureEvents(Event.MOUSEDOWN);
}
****.onmousedown=****;
// -->
</SCRIPT>
dexter
Posts: 32
Joined: Fri Mar 09, 2007 1:18 pm

Post by dexter »

wow...how his work?,please let know I...thanks...

How to use him?
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

this script disables right **** on web page

But if person realy wants to steal something, he will. There is more that enough ways to steal web content: disable JS support, **** edit -> view source and also a lot os other ways. Probably the realy best way to secure your content is AJAX (web 2.0) but this technique is very difficult
Image
shawn
Posts: 52
Joined: Sat Feb 03, 2007 4:49 am

Post by shawn »

Yeah!
Thank for sharing.
I love that code very much.
Locked