Header Ads

ad728
  • Breaking News

    For what shall it profit a man, if he gain the whole world, and suffer the loss of his soul?

    Protect Your Blogger Contents Step by Step Hindi

    Blogger Contents Step by Step Hindi को सुरक्षित रखें



    1. अपने ब्लॉग

    Disable text selection on your blog

    यह आपकी सामग्री की प्रत्यक्ष नकल को हतोत्साहित करने वाला पहला और सबसे आवश्यक कदम है।

    ब्लॉगर प्लेटफ़ॉर्म के उपयोगकर्ता

    Disable Text Selection script
    Directions: Add this script to the HEAD section of your page:

    Select This All 



    <script type="text/javascript">

    /***********************************************
    * Disable Text Selection script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Please keep this notice intact
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/

    function disableSelection(target){
    if (typeof target.onselectstart!="undefined") //IE route
    target.onselectstart=function(){return false}
    else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
    target.style.MozUserSelect="none"
    else //All other route (ie: Opera)
    target.onmousedown=function(){return false}
    target.style.cursor = "default"
    }

    //Sample usages
    //disableSelection(document.body) //Disable text selection on entire body
    //disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"


    </script>


    Then Paste 
    अपने ब्लॉग के HTML में बंद <head> टैग से पहले कुछ जावास्क्रिप्ट कोड को मैन्युअल रूप से इंस्टॉल करके अपने ब्लॉग से पाठ चयन को अक्षम कर सकते हैं।

    ab
    इंस्टॉल की गई स्क्रिप्ट के साथ, डॉक्यूमेंट के बहुत ही अंत में फंक्शन डिसप्लेसीशन (लक्ष्य) को उस तत्व के संदर्भ में कहें, जिसमें आप टेक्स्ट को डिसेबल करना चाहते हैं।
    at the very end of the document with a reference to the element you wish to disable text within


    
    
    last me issey paste kare html page ke end mai 

    <script type="text/javascript">
    disableSelection(document.body) //disable text selection on entire body of page
    </script>

    ok
    cheque your blog page



    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728