0
点赞
收藏
分享

微信扫一扫

html 禁止复制

月孛星君 2022-08-23 阅读 223

<!-- 禁止复制 -->

<script type="text/javascript">



var omitformtags=["input", "textarea", "select"]

omitformtagsomitformtags=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.οnmοusedοwn=disableselect

document.οnmοuseup=reEnable

}

</script>

举报

相关推荐

0 条评论