<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>