changestyle.js
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:6k
源码类别:

OA系统

开发平台:

Java

  1. function mouseon(rowid,imagesid)
  2. {
  3.     rowid.className = "DataRowMouseOn";
  4.     eval("document.all." + imagesid + ".style.display=''");
  5. }
  6. function mouseout(rowid,imagesid,stylename)
  7. {
  8.     rowid.className = stylename;
  9.     eval("document.all." + imagesid + ".style.display='none'");
  10. }
  11. function mouseontd(rowid)
  12. {
  13.     rowid.className = "DataColsMouseOn";
  14. }
  15. function mouseouttd(rowid,stylename)
  16. {
  17.     rowid.className = stylename;
  18. }
  19. function uploadimage(ImageBox,ImagePic)
  20. {
  21.     var ImageSrc=window.showModalDialog("/UploadImg.jsp","","status:no; resizable: no; help:no; dialogWidth:296px; dialogHeight:150px");
  22.     if(ImageSrc!=null&&ImageSrc!="")
  23.     {
  24.         ImageBox.value=ImageSrc;
  25.         ImagePic.src=ImageSrc;
  26.     }
  27.     return false;
  28. }
  29. function uploadacc(FileBox)
  30. {
  31.     var FileSrc=window.showModalDialog("/UploadFile.jsp","","status:no; resizable: no; help:no; dialogWidth:296px; dialogHeight:150px");
  32.     if(FileSrc!=null&&FileSrc!="")
  33.     {
  34.         FileBox.value=FileSrc;
  35.     }
  36.     return false;
  37. }
  38. function selectDefaultValue(selectName,defaultValue)
  39. {
  40.     for(var i=0;i<selectName.length;i++)
  41.     {
  42.         if(selectName.options[i].value==defaultValue)
  43.         {
  44.             selectName.selectedIndex=i;
  45.         }
  46.     }
  47. }
  48. function openeditwindow(EditURL)
  49. {
  50.     window.showModalDialog(EditURL,"","status:yes; resizable: yes; help:no; dialogWidth:696px; dialogHeight:350px");
  51.     return false;
  52. }
  53. function hidden_top(){
  54.   if (switchPointTop.innerText==5){
  55.     switchPointTop.innerText=6;
  56.     window.top.document.all.rowsFrame.rows="0,0,16,*";
  57.   }
  58.   else{
  59.     switchPointTop.innerText=5;
  60.     window.top.document.all.rowsFrame.rows="0,115,16,*";
  61.   }
  62. }
  63. function hidden_left(){
  64.   if (switchPointLeft.innerText==3){
  65.     switchPointLeft.innerText=4;
  66.     window.top.document.all.colsFrame.cols="0,18,*";
  67.   }
  68.   else{
  69.     switchPointLeft.innerText=3;
  70.     window.top.document.all.colsFrame.cols="20%,18,*";
  71.   }
  72. }
  73. function AddAccessories(AccessoriesList)
  74. {
  75.     var FileSrc=window.showModalDialog("/AddAccessory.jsp","","status:no; resizable: no; help:no; dialogWidth:296px; dialogHeight:150px");
  76.     if(FileSrc!=null&&FileSrc!="")
  77.     {
  78.       if(FileSrc.indexOf(",")>0)
  79.       {
  80.         var Accessories = new Array();
  81.         Accessories = FileSrc.split(",");
  82.         var oOption = document.createElement("OPTION");
  83.         AccessoriesList.options.add(oOption);
  84.         oOption.innerText = Accessories[1];
  85.         oOption.value = Accessories[0];
  86.       }
  87.     }
  88.     return false;
  89. }
  90. function DelAccessories(AccessoriesList)
  91. {
  92.   for(var i=0;i<AccessoriesList.options.length;i++)
  93.   {
  94.     if(AccessoriesList.options[i].selected)
  95.     {
  96.       AccessoriesList.options.remove(i)
  97.     }
  98.   }
  99. }
  100. function EditTextCopy(contentobject,contentvalue)
  101.   {
  102.     contentobject.value = contentvalue;
  103.   }
  104. function GetUserIDAndNames(useridsobject,usernameobject)
  105. {
  106.   //showx = event.screenX - event.offsetX;    // + deltaX;
  107.   //showy = event.screenY - event.offsetY+18; // + deltaY;
  108.   showx = (screen.width-280)/2;
  109.   showy = (screen.height-408)/2;
  110.   var FileSrc=window.showModalDialog("/SelectUser2.jsp",","+useridsobject.value+",","dialogWidth:280px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:no;scrollbars:yes;Resizable=yes; ");
  111.   if(FileSrc==null)
  112.   {
  113.   }
  114.   else if(FileSrc=="")
  115.   {
  116.     useridsobject.value="";
  117.     usernameobject.value="";
  118.   }
  119.   else
  120.   {
  121.     var UserIDAndNames = new Array();
  122.     UserIDAndNames = FileSrc.split("|!|");
  123.     useridsobject.value=UserIDAndNames[0];
  124.     usernameobject.value=UserIDAndNames[1];
  125.   }
  126. }
  127. function GetUserNames(usernameobject)
  128. {
  129.   //showx = event.screenX - event.offsetX;    // + deltaX;
  130.   //showy = event.screenY - event.offsetY+18; // + deltaY;
  131.   showx = (screen.width-280)/2;
  132.   showy = (screen.height-408)/2;
  133.   var FileSrc=window.showModalDialog("/SelectUser2.jsp","","dialogWidth:280px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:no;scrollbars:yes;Resizable=yes; ");
  134.   if(FileSrc==null)
  135.   {
  136.   }
  137.   else if(FileSrc=="")
  138.   {
  139.     usernameobject.value="";
  140.   }
  141.   else
  142.   {
  143.     var UserIDAndNames = new Array();
  144.     UserIDAndNames = FileSrc.split("|!|");
  145.     usernameobject.value=UserIDAndNames[1];
  146.   }
  147. }
  148. function GetDepartIDAndNames(departidsobject, departnameobject)
  149. {
  150.   //showx = event.screenX - event.offsetX;    // + deltaX;
  151.   //showy = event.screenY - event.offsetY+18; // + deltaY;
  152.   showx = (screen.width-280)/2;
  153.   showy = (screen.height-408)/2;
  154.   var FileSrc=window.showModalDialog("/SelectDepartment1.jsp",","+departidsobject.value+",","dialogWidth:280px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:no;scrollbars:yes;Resizable=yes; ");
  155.   if(FileSrc==null)
  156.   {
  157.   }
  158.   else if(FileSrc=="")
  159.   {
  160.     departidsobject.value="";
  161.     departnameobject.value="";
  162.   }
  163.   else
  164.   {
  165.     var DepartIDAndNames = new Array();
  166.     DepartIDAndNames = FileSrc.split("|!|");
  167.     departidsobject.value=DepartIDAndNames[0];
  168.     departnameobject.value=DepartIDAndNames[1];
  169.   }
  170. }
  171. function PopUpSelectUser(UserName)
  172. {
  173.   showx = event.screenX - event.offsetX;    // + deltaX;
  174.   showy = event.screenY - event.offsetY+18; // + deltaY;
  175.   var retval = window.showModalDialog("/SelectUser1.jsp", "","dialogWidth:250px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:yes;scrollbars:yes;Resizable=yes; ");
  176.   if(retval!=null)
  177.   {
  178.     if(retval.indexOf("|!|")>0)
  179.   {
  180.       var strtemp = retval.split("|!|");
  181.       UserName.value=strtemp[1];
  182.     }
  183.   }
  184. }