防偷窥专用,只是给别人增加一道很小很小的门槛~~
屏蔽鼠标右键,屏蔽F12键。
<code>
function nocopy()
{
event.returnValue=false;
}
document.oncontextmenu=nocopy;
document.onkeydown = function(){ if(window.event && window.event.keyCode == 123) {
window.event.returnValue=false;
} }
</code>
function nocopy()
{
event.returnValue=false;
}
document.oncontextmenu=nocopy;
document.onkeydown = function(){ if(window.event && window.event.keyCode == 123) {
window.event.returnValue=false;
} }
</code>
终极版~防按F12,检测 chrome 的“审查元素”,firefox的”firebug”等~~~
<code>jQuery(document).ready(function($) {
function fuckyousister() {
window.close();
window.location = "about:blank"
};
function fuckyou() {
if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || (typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) {
fuckyousister()
};
if (typeof console.profiles == "object" && console.profiles.length > 0) {
fuckyousister()
}
};
fuckyou();
window.onresize = function() {
if ((window.outerHeight - window.innerHeight) > 200) fuckyousister()
}
});</code>
function fuckyousister() {
window.close();
window.location = "about:blank"
};
function fuckyou() {
if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || (typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) {
fuckyousister()
};
if (typeof console.profiles == "object" && console.profiles.length > 0) {
fuckyousister()
}
};
fuckyou();
window.onresize = function() {
if ((window.outerHeight - window.innerHeight) > 200) fuckyousister()
}
});</code>