quote:
Originally posted by may73alliance
quote:
Originally posted by Anubis
It is not possible in pure HTML, but you will need to use JavaScript
Just paste that into the <BODY> tag. btw, disableing right clicking is not a fool proof way to stop people stealing your websites sources. It will only stop pople who are very limited computer users in general.
code:
<script language=JavaScript>
var message="Function Disabled!";
///////////////////////////////////
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>
thanks anubis. so just copy that into the html code yeah? i dont really use javascript...is it external like .css? or do i place that code in the html? thanks
you go to the html file in ur site.
now u look for <body> and under body u just paste all of that. Its that easy.