站长能否出个限制右键代码?
站长能否出个限制右键代码?只有指定人才可以右键比如管理员,版主指定后可以用右键其他人无法使用的代码? [b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=38174&ptid=197]1#[/url] [i]零九三零[/i] [/b]应该可以,我试试啊 多谢官大的支持和无私奉献 编辑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] 这么快?官大你也太牛啦啊哈哈谢谢谢谢 指定人怎么设置啊?
官大? [b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=38186&ptid=197]6#[/url] [i]零九三零[/i] [/b]
经测试有效果谢谢 [quote]看帖回帖那是一定要的:[img]http://icode.258club.com/images/smilies/007/32.gif[/img]淡定中,谢谢分享[/quote] [b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=38192&ptid=197]8#[/url] [i]icode[/i] [/b]
两个字 流弊 [quote]看帖回帖那是一定要的:[img]http://icode.258club.com/images/smilies/007/06.gif[/img]哇!你真有才![/quote]
页:
[1]