生命不息,奋斗不止/创造价值-传递价值-获得价值
所谓迷茫,就是才华配不上梦想 每一个让你难堪的现在,都有一个不够努力的曾经

禁止右键等

<script type=”text/javascript”>
$(document).ready(function(e) {
var str;

$(“.input”).blur(function(e) {
var temp = $(this).val();
$(this).parent().find(“.td”).text(temp);
});

$(“tr”).hover(function(){
if($(this).find(“th”).length==0)
{
$(this).css(“background-color”,”#EEE”);
}
},function(){
$(“tr”).css(“background-color”,”#fff”);
$(“tr:odd”).css(“background-color”,”#FCFCFC”);
});

$(“#search_plane”).slideToggle(“fast”);
// 搜索展开
a_border();
function a_border()
{
$(“#search_green”).click(function(e) {
$(“#search_plane”).slideToggle(“fast”);
});
}

// 搜索
$(“#search”).click(function(){
$(‘#form1’).submit();
});

});

function key(){

if(event.shiftKey){
window.close();
return false;
}
//禁止Shift
if(event.altKey){
window.close();
return false;
}
//禁止Alt
if(event.ctrlKey){
window.close();
return false;
}
//禁止Ctrl

}
document.onkeydown=key;
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu(){
event.cancelBubble = true;
event.returnValue = false;
return false;
}
function norightclick(e){
if (window.Event){
if (e.which == 2 || e.which == 3)
return false;
}else if (event.button == 2 || event.button == 3){
event.cancelBubble = true;
event.returnValue = false;
return false;
}
}
//禁右键
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others

</script>

赞(0)
未经允许不得转载:jack361博客 » 禁止右键等

如果你爱我或恨我,请↓

联系我