Disable highlight text$BlogItemTitle$>
11/21/2011$BlogDateHeaderDate$> at 18:23$BlogItemDateTime$>
经过试了以后,发觉这个比较有效~
当然如果要套用你的文字设定,正篇抄走也不是没有可能的哦!只是被抄袭的几率会比较低
Copy N Paste in HTML/JavaScript
代码:
<script type="text/javascript">
/***********************************************
* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=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.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
Labels: 部落教学 $BlogItemBody$>
0 lovely comments
0 Comments:$BlogItemCommentCount$>
$BlogItemCreate$>
|
Disable highlight text$BlogItemTitle$>
11/21/2011$BlogDateHeaderDate$> at 18:23 $BlogItemDateTime$>
经过试了以后,发觉这个比较有效~
当然如果要套用你的文字设定,正篇抄走也不是没有可能的哦!只是被抄袭的几率会比较低
Copy N Paste in HTML/JavaScript
代码:
<script type="text/javascript">
/***********************************************
* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=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.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
Labels: 部落教学 $BlogItemBody$>
0 Comments:$BlogItemCommentCount$>
$BlogItemCreate$>
|
Post a Comment