How To Disable Text Selection In Blogger
Saturday, August 17, 2013
0
comments
Implementing this to your Blogger blog is simple:
- In your dashboard, go to Layout and then click on Add a Gadget.
- Select HTML/JavaScript
- Copy and paste this code below:
<script type="text/javascript">
/***********************************************
* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//form tags to omit in NS6+:
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>
- Then save the widget and you’re done.
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: How To Disable Text Selection In Blogger
Ditulis oleh muamar
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://androidmobile7.blogspot.com/2013/08/how-to-disable-text-selection-in-blogger.html. Terima kasih sudah singgah membaca artikel ini.Ditulis oleh muamar
Rating Blog 5 dari 5
0 comments:
Post a Comment