编辑header模板,找到- <body id="{CURSCRIPT}" onkeydown="if(event.keyCode==27) return false;">
复制 在下边加- <!--{if $adminid != 1}-->
- <SCRIPT>
- function disableselect(e) {
- return false
- }
- function reEnable() {
- return true
- }
- file: //if IE4+
- document.onselectstart = new Function("return false")
- file: //if NS6
- if (window.sidebar) {
- document.onmousedown = disableselect
- document.onclick = reEnable
- }
- function MM_reloadPage(init) { //reloads the window if Nav4 resized
- if (init == true) with(navigator) {
- if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {
- document.MM_pgW = innerWidth;
- document.MM_pgH = innerHeight;
- onresize = MM_reloadPage;
- }
- } else if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) location.reload();
- }
- MM_reloadPage(true);
- </SCRIPT>
- <!--{/if}-->
复制 |