Thread: I am furious!
View Single Post
Old 12-06-2006, 09:59 PM   #28
bren
Slave to Max 'n Abbie
Donating Member
 
bren's Avatar
 
Join Date: Feb 2006
Location: Pittsburgh
Posts: 1,529
Default

Quote:
Originally Posted by bren
my boyfriend disabled the right click feature when he did my website so I'll ask him...
Here you go:

In your html document, typically near the top, find the </HEAD> tag and paste the following script/code in just before the </HEAD> tag:

<script language="JavaScript">
<!--
<!--

//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="For permission to use or copy images please contact Tinkerbell's Closet";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.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>
__________________
Brenda, Max & Abbie
bren is offline   Reply With Quote
Welcome Guest!
Not Registered?

Join today and remove this ad!