www.pudn.com > tongzhi.rar > control.js


//==========================================
// JS For PJBlog2 Background Control
//   By PuterJam 2006-6-10
//==========================================

	 function CheckMove(){
		  if (document.forms[0].source.value=="null") {
		   alert("请选择日志分类源")
		   document.forms[0].source.focus()
		   return false
		  }
		  if (document.forms[0].target.value=="null") {
		   alert("请选择需要移动到的目标日志分类")
		   document.forms[0].target.focus()
		   return false
		  }
		  if (document.forms[0].source.value==document.forms[0].target.value){
		   alert("源分类和目标分类一致无法移动")
		   return false
		  }
		return true
	  }

     function checkAll(e){
      for (i=0;i-1) {
             document.getElementById("spamList").remove(document.getElementById("spamList").selectedIndex)
           }
         }
         function submitList(){
          var spam=document.getElementById("spamList")
          var spamStr=""
          for (var i=0;i0) {
 	 	  o.previousSibling.innerHTML="回复内容:"
 	 }
 	 else{
 	 	  o.previousSibling.innerHTML="回复内容:(无回复留言)"
 	 }
 }
 
 function reHeight(o){
  	 if (o.inFocus) {o.style.height = "120px";}
 }
 	 
 function highLight(o){
 	 o.parentNode.style.backgroundColor = (o.checked)?"#AAC1E6":"#E6EBF7"
 	 o.parentNode.parentNode.style.border = (o.checked)?"1px solid #AAC1E6":"1px solid #D6DEF1";
 }
 
 function DelModule(id,isSystem){
    	if (isSystem=="True"){alert("系统内置模块无法删除!!")}
    	else{
    	 if (confirm("是否删除此模块?")){
    		  document.forms[0].DoID.value=id
    		  document.forms[0].whatdo.value="delModule"
    		  document.forms[0].submit()  
		  }
    	}
  }
  
  function DelComment(){
    	 if (confirm("是否删除所选的项目?")){
    		  document.forms[0].doModule.value="DelSelect"
    		  document.forms[0].submit()  
		  }
  }
  
  function updateComment(){
    		  document.forms[0].doModule.value="Update"
    		  document.forms[0].submit()  
  }