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:
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...
Dê "CTRL + F" e procure por </html>, Cole a CIMA dele esse código:
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 nesta postagem.
-Não copie essa postagem por favor!
Nenhum comentário:
Postar um comentário