
যেভাবে করবেন
- প্রথমেই আপনার ব্লগস্পট ব্লগে লগিন করুন।
- তারপর লেআউট ট্যাবে গিয়ে Add a Gadget বাটনে ক্লিক করুন।
- তারপর একটি পপআপ উইন্ডো ওপেন হবে, তাতে নিচের কোড সমূহ পেস্ট করুন।
এবার ইউজেটটি সেভ করুন, তাহলেই আপনার ব্লগটি কপি পেস্ট থেকে সুরক্ষিত হয়ে যাবে।
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <?php } // no selection header - now your content is protected from copy and paste guys function copyprotect_no_select() { ?> <script type="text/javascript"> function disableSelection(target){ if (typeof target.onselectstart!="undefined") //For IE target.onselectstart=function(){return false} else if (typeof target.style.MozUserSelect!="undefined") //For Firefox target.style.MozUserSelect="none" else //All other route (For Opera) target.onmousedown=function(){return false} target.style.cursor = "default" } </script> <?php } // no selection footer function copyprotect_no_select_footer() { ?> <script type="text/javascript"> disableSelection(document.body) </script> <small>Copy Protected by <a href="http://www.bdtechzone.com/category/blogger-tutorial" target="_blank">BDTechZone</a></small> <?php } // tuning your wp-copyprotect function copyprotect_options_page() { ?></?php } ></?php } ></?php } > |
0 comments:
একটি মন্তব্য পোস্ট করুন