floydax Posted April 18, 2009 Posted April 18, 2009 I hate it when people go and just copy paste my descriptions and use it, so I found this way to make their job a bit harder. Just insert this piece of code after the <body> tag in \catalog\product_info.php and they won't be able to directly copy the text. I've tested it in IE7 and Firefox 3. <script language="JavaScript1.2"> function disabletext(e){ return false } function reEnable(){ return true } //if the browser is IE4+ document.onselectstart=new Function ("return false") //if the browser is NS6 if (window.sidebar){ document.onmousedown=disabletext document.onclick=reEnable } </script> Regards.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.