for mp3 songs free download

indiafreemp3.blogspot.com

indiafreemp3.blogspot.com



Free Mp3 Songs Download

Sunday, May 23, 2010

How to Disable Text Selection in Blogger

How to Disable Text Selection in Blogger

After disable right click in blogger hack Bloganol brings you a hack to disable text selection in your blog. This hack was created by Dynamicdrive.It is also applicable to those bloggers who don’t like their content copied by others. If you are among them then Copy the following code and Paste it to your blog.



function disableSelection(target){if (typeof target.onselectstart!="undefined") //IE routetarget.onselectstart=function(){return false}else if (typeof target.style.MozUserSelect!="undefined") //Firefox routetarget.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>

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails