Security
|Thachthat.biz|
today : | at : | safemode : ON
> / home / root /public_html / it.thachthat.biz /
Name User Perms Com Modified Label

ko cho CTRL+U Unknown rwxr-xr-x 0 12:00

Filename ko cho CTRL+U
Permission rw-r--r--
Author Unknown
Date and Time 12:00
Label
Action
bước 1 : chèn phía dưới <b:skin> mã : 

<!-- Library jQuery -->
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/>
 bước 2 chèn mã này sau </head>


<style>
#controlu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100005;
    background: rgba(0,0,0,.8);
    display: none;
    color: #000;
    text-align: center;
}

#controlu a {
    color: #079aec;
}

#controlu #controluinner {
    padding: 10px;
    max-width: 450px;
    height: 60px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    font: 400 13px/20px Arial,sans-serif;
    background: #eee;
    border: 10px solid #555;
    font-size: 130%;
}
</style>
 bước 3 : chèn mã này trước </body> :



<script type='text/javascript'>
// Disable ControlU
function controlu(a){var e=document.getElementById("controlu");var h=document.getElementById("controluinner");var b="Haha, ketauan!! mau ngintip code yaa?? <img src='//googledrive.com/host/0B7H_GQEvKCj1SmIxOXhHalV2ZVE/ngakak.gif' style='width:60px;height:50px;'/>";if(a.ctrlKey&amp;&amp;a.which==85){e.style.display="block";h.innerHTML=b;return false}}document.onkeydown=controlu;
</script>


4. Bước tiếp theo, viết code html dưới đây ngay sau thẻ <body> :

<div id='controlu' oncontextmenu='return false'><div id='controluinner'/></div>


chi tiết xem tại : http://blog.kangrian.com/2014/04/simple-and-custom-disable-ctrlu-with-notification-and-image.html

0 nhận xét:

 

Jayalah Indonesiaku © 2014 IT Thạch Thất
VB (Vio b374k) Template design by Thachthat.biz