|
|
本帖最后由 Test 于 2012-3-21 10:15 编辑
Add these javescript code in HEAD module:
- <script type="text/javascript">
- function disableSelection(target){
- if (typeof target.onselectstart!="undefined") //For IE
- target.onselectstart=function(){return false}
- else if (typeof target.style.MozUserSelect!="undefined") //For Firefox
- target.style.MozUserSelect="none"
- else //All other route (For Opera)
- target.onmousedown=function(){return false}
- target.style.cursor = "default"
- }
- </script>
复制代码
Then, in the body, usually at the final part of it, add:
- <script type="text/javascript">
- disableSelection(document.body)
- </script>
复制代码
and ...
Done.
|
|