Здравствуйте!
Скажите, как сделать так, чтобы этот скрипт работал на текст, который загнат в теги [html]?
<!----------------------------------------- АНТИПЛАГИАТ ----------------------------------------->
<script type="text/javascript">
<!-- Информация -->
function disableSelection(target){
if (typeof target.onselectstart!="undefined")
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined")
target.style.MozUserSelect="none"
else
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
if (document.getElementById("pun_wrap")) {
var st = document.getElementById("pun-crumbs1").innerHTML;
if (st.indexOf("Полезные статьи") != -1)
disableSelection(document.getElementById("pun_wrap"));
}
</script>
<script type="text/javascript">
<!-- Фан-форум -->
function disableSelection(target){
if (typeof target.onselectstart!="undefined")
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined")
target.style.MozUserSelect="none"
else
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
if (document.getElementById("pun_wrap")) {
var st = document.getElementById("pun-crumbs1").innerHTML;
if (st.indexOf("Информация о нашем фан-форуме") != -1)
disableSelection(document.getElementById("pun_wrap"));
}</script>