﻿document.writeln("<script language=\"JavaScript\">");
document.writeln("<!--");
document.writeln(" \/\/***********************禁止右键***************************");
document.writeln("if (window.Event)");
document.writeln("  document.captureEvents(Event.MOUSEUP);");
document.writeln(" ");
document.writeln("function nocontextmenu()");
document.writeln("{");
document.writeln(" event.cancelBubble = true");
document.writeln(" event.returnValue = false;");
document.writeln(" ");
document.writeln(" return false;");
document.writeln("}");
document.writeln(" ");
document.writeln("function norightclick(e)");
document.writeln("{");
document.writeln(" if (window.Event)");
document.writeln(" {");
document.writeln("  if (e.which == 2 || e.which == 3)");
document.writeln("   return false;");
document.writeln(" }");
document.writeln(" else");
document.writeln("  if (event.button == 2 || event.button == 3)");
document.writeln("  {");
document.writeln("   event.cancelBubble = true");
document.writeln("   event.returnValue = false;");
document.writeln("   return false;");
document.writeln("  }");
document.writeln("}");
document.writeln("");
document.writeln("\/\/************************禁止选择***************************");
document.writeln("function noSelect()");
document.writeln("{");
document.writeln(" return false;");
document.writeln("}");
document.writeln("");
document.writeln("\/\/************************禁止拖曳***************************");
document.writeln("function noDragstart()");
document.writeln("{");
document.writeln("  return false; ");
document.writeln("}");
document.writeln("");
document.writeln("\/\/************************清空剪切板*************************");
document.writeln(" function keyDown()");
document.writeln(" {");
document.writeln("  var iekey = event.keyCode;");
document.writeln("  \/\/alert(iekey);");
document.writeln("    if(iekey == 42)");
document.writeln("    {");
document.writeln("    \/\/window.clipboardData.setData(\'img\',\'\')");
document.writeln(" ");
document.writeln(" window.clipboardData.clearData();");
document.writeln("    }");
document.writeln(" }");
document.writeln("");
document.writeln("\/\/-->");
document.writeln("<\/script>");
document.writeln("");
document.writeln("<!--禁止网页另存为-->");
document.writeln("<!--");
document.writeln("<noscript> <iframe src=\"*.htm\"><\/iframe> <\/noscript>");
document.writeln("\/\/--><noscript> <iframe src=\"*.htm\"><\/iframe> <\/noscript><SCRIPT language=JavaScript>");
document.writeln("  document.oncontextmenu = nocontextmenu;");
document.writeln("  document.onmousedown = norightclick;");
document.writeln("  document.ondragstart = noDragstart;");
document.writeln("  document.onselectstart = noSelect;");
document.writeln("  document.onselect = document.selection.empty();");
document.writeln("  document.onkeydown = keyDown;");
document.writeln("<\/SCRIPT>")
