教学 ♥ 禁止 highlight
06 December 2011 @ 8:39 AM



转帖请留言和附上链接 ♥

-

我本人就觉得这个方法很不错
就连 highlight 都不可以 小偷们就不能 copy 啦 xD

1 Design > Edit layout > add a gadget > HTML/java script
2 把以下的代码放进去 :


<script language="JavaScript1.2">

//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>


3 然后按 save 就可以了哦

Thanks for reading ♥