1. مهمان گرامی، جهت ارسال پست، دانلود و سایر امکانات ویژه کاربران عضو، ثبت نام کنید.
    بستن اطلاعیه

جلوگیری از کپی برداری از سایت و برداشتن مطالب با هک - تمام ورژن ها *All Version* Details »»

شروع موضوع توسط Mohammad ‏9/3/11 در انجمن vBulletin

  1. Founder

    تاریخ عضویت:
    ‏11/11/10
    ارسال ها:
    13,002
    تشکر شده:
    13,539
    امتیاز دستاورد:
    113
    جنسیت:
    مرد
    Disable right click and high lighting
    vBulletin Version: All Version
    Release Date: 11 August 2008
    Last Update: Never

    Disable right click and high lighting 1.0

    Description:
    Disable right click and high lighting.

    Installation:
    Do the template edits.

    Template Edits:
    In headinclude temp, add to the top:
    قالب headinclude را پیدا کنید و سپس کد هایی که در فایل پیوست وجود دارد را در بالای آن اضافه کنید.




    کد:
    <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>  
    منبع: وی بی ایران (اقای خلیلی فر)
     
    یک شخص از این تشکر کرد.