其它例子:
<script type="text/javascript">
disableSelection(document.body) /https://img.qb5200.com/download-x/disable text selection on entire body of page
</script>
<script type="text/javascript">
var somediv=document.getElementById("mydiv")
disableSelection(somediv) /https://img.qb5200.com/download-x/disable text selection within DIV with id="mydiv"
</script>
<script type="text/javascript">
var alltables=document.getElementsByTagName("table")
for (var i=0; i<alltables.length; i++)
disableSelection(alltables[i]) /https://img.qb5200.com/download-x/disable text selection within all tables on the page
</script>