步骤1:
打开布局 -> 页面元素 -> 添加小工具 -> HTML/JavaScript
Copy 以下的code然后paste进去 HTML/JavaScript里
<script language="JavaScript">
<!--
//Disable right mouse click Script
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
步骤2:
更改要显示的字。
用ctrl+f寻找以下这一行
var message="Function Disabled!";
将红色这一行 --> [Function Disabled!] 改成你所要显示的字~
注意:这个效果只能够在webpage loading得七七八八的时候用的哦~
我把我看到的简单的copy给大家知道,
希望你们会喜欢^^
讯息提供来自纬之乐园

没有评论:
发表评论