爱秀代码's Archiver

零九三零 发表于 2018-11-5 22:33

站长能否出个限制右键代码?

站长能否出个限制右键代码?只有指定人才可以右键比如管理员,版主指定后可以用右键其他人无法使用的代码?

icode 发表于 2018-11-5 22:39

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=38174&ptid=197]1#[/url] [i]零九三零[/i] [/b]


    应该可以,我试试啊

零九三零 发表于 2018-11-5 22:41

多谢官大的支持和无私奉献

icode 发表于 2018-11-5 22:47

编辑header模板,找到[code]<body id="{CURSCRIPT}" onkeydown="if(event.keyCode==27) return false;">[/code]在下边加[code]<!--{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}-->[/code]

零九三零 发表于 2018-11-5 23:18

这么快?官大你也太牛啦啊哈哈谢谢谢谢

零九三零 发表于 2018-11-5 23:24

指定人怎么设置啊?
官大?

零九三零 发表于 2018-11-5 23:56

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=38186&ptid=197]6#[/url] [i]零九三零[/i] [/b]


    经测试有效果谢谢

icode 发表于 2018-11-6 08:25

[quote]看帖回帖那是一定要的:[img]http://icode.258club.com/images/smilies/007/32.gif[/img]淡定中,谢谢分享[/quote]

麻城生活网 发表于 2018-11-6 15:15

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=38192&ptid=197]8#[/url] [i]icode[/i] [/b]


    两个字    流弊

波斯佳人 发表于 2018-11-6 16:42

[quote]看帖回帖那是一定要的:[img]http://icode.258club.com/images/smilies/007/06.gif[/img]哇!你真有才![/quote]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.