MelodyHub

没有伞的孩子必须努力奔跑!|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<script type="text/javascript">
$(function(){
var OriginTitile = document.title;
var titleTime;
document.addEventListener('visibilitychange', function () {
if (document.hidden) {
$('[rel="shortcut icon"]').attr('href', "http://pjax.cn/loss.ico");
document.title = '404 Not Found';
clearTimeout(titleTime);
}
else {
$('[rel="shortcut icon"]').attr('href', "http://pjax.cn/favicon.ico");
document.title = '(/≧▽≦/)咦!又好了!' + OriginTitile;
titleTime = setTimeout(function () {
document.title = OriginTitile;
}, 2000);
}
});
//屏蔽鼠标右键
document.oncontextmenu = function(e){
return false;
};
//屏蔽f12等
document.onkeydown = function(e){
var e = e || event;
var nums = [113,114,115,116,117,118,119,120,121,122,123];
for(var i in nums){
if(e.keyCode == nums[i]){
return false;
}
}
};

});

</script>

 评论


博客内容遵循 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议

本站使用 Hexo 作为驱动引擎 , 总浏览量为 次 , 总访客数为
载入天数...载入时分秒...