i have the codes i think but what file do i put the scripts at? themes.php? index.php? so i just need to be pointed in the rigt direction thank you.
depends on how your codes work. I suggest putting it into themes/yourtheme/template.html
What is the code? I would love to add this to galleries as well. Thanks.
i need to find the code as well. i don't know if i should use a javascript or just an html code? i tried putting a couple of codes in the theme.html. thank you
Hi,
Just add this code in your template.html just before the </head> tag <script language=JavaScript>
<!--
var message="copyright protected!";
///////////////////////////////////
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 for sharing, but let me say that the coppermine dev team considers no right click scripts silly and useless. Please search the board for detailed explanations why.