Bloquear seleção de texto

Como bloquear seleção de texto no blog?

Vá em seu painel do blogger "Modelo" , "Editar HTML" e dê "CTRL + F" e procure por "</head>"

Depois de achar ACIMA do </head> cole o código:

<script type="text/javascript">
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"
}

</script> 

Depois de colar o código...
"CTRL + F" e procure por </html>, Cole a CIMA dele esse código:

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

</script 

Pronto agora salve e veja se funcionou. Se não funcionou veja se você fez como esta neste post.



Deixe um Comentario.

Related Posts Plugin for WordPress, Blogger...

Anuncios

Anuncios

Anuncio

Visitantes Online