Sunday, August 2, 2009

What is the html code for no right click and no hightlight to copy and paste?

I am trying to protect my website content. Is there a code I can put in my template to disable right click and also no highlighting so it cannot be copied and pasted? Thanks very much.

What is the html code for no right click and no hightlight to copy and paste?
Here will kill the right click





%26lt;SCRIPT LANGUAGE="JavaScript1.1"%26gt;


%26lt;!-- Original: Martin Webb (martin@irt.org) --%26gt;





%26lt;!-- This script and many more are available free online at --%26gt;


%26lt;!-- The JavaScript Source!! http://javascript.internet.com --%26gt;





%26lt;!-- Begin


function right(e) {


if (navigator.appName == 'Netscape' %26amp;%26amp;


(e.which == 3 || e.which == 2))


return false;


else if (navigator.appName == 'Microsoft Internet Explorer' %26amp;%26amp;


(event.button == 2 || event.button == 3)) {


alert("I'm sorry, The Right click option on your mouse has been disabled for the download window pages.");


return false;


}


return true;


}





document.onmousedown=right;


document.onmouseup=right;


if (document.layers) window.captureEvents(Event.MOUSEDOWN);


if (document.layers) window.captureEvents(Event.MOUSEUP);


window.onmousedown=right;


window.onmouseup=right;


// End --%26gt;


%26lt;/script%26gt;





But all they have to do is turn off their JS and it doesn't work.


There's another for the C/P but it would make this answer too long...
Reply:http://www.hypergurl.com/norightclick.ht...
Reply:That would be javascript.

sepal

No comments:

Post a Comment