<!--防止另存为开始-->  
  <noscript> 
  <iframe src=""></iframe> 
  </noscript> 
  <script type="text/javascript"> 
  function getCookie(objName) 
  {//获取指定名称的cookie的值 
  var arrStr = document.cookie.split("; "); 
  for(var i = 0;i < arrStr.length;i ++){ 
  var temp = arrStr[i].split("="); 
  if(temp[0] == objName) return unescape(temp[1]); 
  } 
  } 
  function addCookie(objName,objValue,objHours) 
  {//添加cookie 
  var str = objName + "=" + escape(objValue); 
  if(objHours > 0){//为0时不设定过期时间,浏览器关闭时cookie自动消失 
  var date = new Date(); 
  var ms = objHours*3600*1000; 
  date.setTime(date.getTime() + ms); 
  str += "; expires=" + date.toGMTString(); 
  } 
  document.cookie = str; 
  } 
  if (location.href != getCookie("orderfrom")) 
  { 
  addCookie("orderfrom",location.href,0); 
  } 
  </script> 
  <!--右键开始--> 
  <script language="JavaScript"> 
  <!-- 
  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> 
  <!-- 禁止选择文本: --> 
  <script type="text/javascript"> 
  var omitformtags=["input", "textarea", "select"] 
  omitformtags=omitformtags.join("|") 
  function disableselect(e){ 
  if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1) 
  return false 
  } 
  function reEnable(){ 
  return true 
  } 
  if (typeof document.onselectstart!="undefined") 
  document.onselectstart=new Function ("return false") 
  else{ 
  document.onmousedown=disableselect 
  document.onmouseup=reEnable 
  } 
  </script> 
posted on 2011-02-14 17:16  那年秋天  阅读(760)  评论(1编辑  收藏  举报