Log In · Register

 
Pop up MSG BOX, Prevents/annoy ppl who right click
Sweet_Lemon_Tea
post Oct 8 2004, 03:19 AM
Post #1


Newbie
*

Group: Member
Posts: 1
Joined: Oct 2004
Member No: 54,194



I was wondering if there's a code that prevents/annoy ppls who right click to steal images and pics from my site.

I'm looking for a code that will pop up a personalized message box like "Watch it, back off!" or something like that each time a person tries to right click to steal something from my xanga site...

I got given several codes, but none of them work.......is it because I put the code into the wrong place? I put the code into the "OUR HTML" in the Look and Feel section..

Here are some of the codes that were given to me:

CODE 1)


<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="HEY!What're you doing?!FUXK OFF!!";

///////////////////////////////////
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")

// -->

CODE 2)


var message="Copyright 2003 by INSERT YOUR NAME HERE. STOP TRYING TO STEAL MY CODE YA N00B!!!.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
 
 
Start new topic
Replies
chu3guo2
post Oct 8 2004, 04:27 PM
Post #2


untouchable sakaba
****

Group: Member
Posts: 149
Joined: Oct 2004
Member No: 53,830



if u really want to annoy the ppl who right click u could always use the one in the scripts section that has like 1000 windows pop up one after the other, its just plain funny biggrin.gif
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: