thiet ke web, thiet ke website, lam website, lam web, day lam web, hoc lam web, dang ky ten mien, ten mien, hosting, mua hosting, thue hosting, hosting gia re, hosting khuyen mai, web gia re, bao mat web

thiết kế web, thiết kế website, làm website, làm web, dạy làm web, học làm web, đăng ký tên miền, tên miền, hosting, mua hosting, thuê hosting, hosting giá rẻ, hosting khuyến mãi, web giá rẻ, bảo mật web

Thiết kế website | thuê hosting

By Thiết kế website , cho thuê hosting , đăng ký tên miền 4.5 sao trên 912người dùng
Thứ Tư - 30/5/2012 - 15:59:10

Code chống sao chép nội dung
Để chống sao chép nội dung web bạn chỉ cần cho đoạn code này vào nhé!
Cách 1:
<script language="JavaScript1.2">
var 
message="Text Here";
function 
click(e)
{
  if (
document.all)
  {
    if (
event.button==2||event.button==3)
    {
      
alert(message);
      return 
false;
    }
  }
  else
  {
    if (
e.button==2||e.button==4)
    {
      
e.preventDefault();
      
e.stopPropagation();
      
alert(message);
      return 
false;
    }
  }
}
if (
document.all// for IE
{
  
document.onmousedown=click;
}
else 
// for FF
{
  
document.onclick=click;
}
</script>
<script type="text/javascript">
function ehan( evnt )
{
  if( evnt.which == 3 )
  {
    alert( "Text Here" );
    return false;
  }
  return true;
}
function ocmh()
{
  alert( "Text Here" );
  return false;
}
document.oncontextmenu = ocmh;
document.captureEvents( Event.MOUSEDOWN );
if( document.layers ) document.onmousedown = ehan;
</script>
<SCRIPT language="JavaScript">
if (window!=top){top.location.href=location.href;}
</script>
<script type="text/javascript">
<!--
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
-->
</script>
 
    <SCRIPT language="JavaScript">
if (window!=top){top.location.href=location.href;}
</script>
<script type="text/javascript">
<!--
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
-->
</script> 


Cách 2:
<SCRIPT language=JavaScript type=text/javascript> 


      function disableselect(e){return false} 
  
      function reEnable(){return true} 


      //if IE4+ 

      document.onselectstart=new Function ("return false") 

      //if NS6 

      if (window.sidebar){ 

      document.onmousedown=disableselect 

      document.onclick=reEnable 

      } 

      </script>  
.
.

CÔNG TY CỔ PHẦN TQCOM VIỆT NAM

Tư vấn thiết kế website
         Email đăng ký: sale@tqgrow.com