一个基本的固定资产管理系统

源代码在线查看: xtree.js

软件大小: 8530 K
上传用户: jill
关键词: 管理系统
下载地址: 免注册下载 普通下载 VIP

相关代码

				scores = new Array(20);
				var numTotal=0;
				NS4 = (document.layers) ? 1 : 0;
				IE4 = (document.all) ? 1 : 0;
				ver4 = (NS4 || IE4) ? 1 : 0;
				if (ver4) {
				    with (document) {
				            write("");
				                    if (NS4) {
				                                write(".parent {position:absolute; visibility:visible}");
				                                write(".child {position:absolute; visibility:visible}");
				                                write(".regular {position:absolute; visibility:visible}")        
				                    }else {            
				                    		write(".child {display:none}")        
				                    }
				                    write("");    
				     }
				}
				function getIndex(el) {
				    ind = null;    
				    for (i=0; i				            whichEl = document.layers[i];        
				            if (whichEl.id == el) {    
				                    ind = i;            
				                    break;        
				            }    
				     }    
				     return ind;
				}
				function arrange() {    
					nextY = document.layers[firstInd].pageY +document.layers[firstInd].document.height;    
					for (i=firstInd+1; i					        whichEl = document.layers[i];        
					        if (whichEl.visibility != "hide") {     
					               whichEl.pageY = nextY;            
					               nextY += whichEl.document.height;        
					        }   
					}
				}
				function initIt(){    
					if (!ver4) return;    
					if (NS4) {        
						for (i=0; i						     whichEl = document.layers[i];            
						     if (whichEl.id.indexOf("Child") != -1) 
						     	whichEl.visibility = "hide"; 
						     }        
						arrange();    
					}else {    
					    divColl = document.all.tags("DIV");        
					    for (i=0; i					         whichEl = divColl(i);            
					         if (whichEl.className == "child") whichEl.style.display = "none";        
					    }    
					}
				}
				function expandIt(el) {	
					if (!ver4) return;    
					if (IE4) {    
					    whichEl1 = eval(el + "Child");		
					    for(i=1;i					    	whichEl = eval(scores[i] + "Child");			
					    	if(whichEl!=whichEl1) {			
					    		whichEl.style.display = "none";			
					    	}	
					    }        
					    whichEl1 = eval(el + "Child");        
					    if (whichEl1.style.display == "none") {      
					          whichEl1.style.display = "block";        
					    } else {     
					           whichEl1.style.display = "none";        
					    }    
					}else {    
					    whichEl = eval("document." + el + "Child");		
					    for(i=1;i					    	whichEl = eval("document." + scores[i] + "Child");	
					    	if(whichEl!=whichEl1) {			
					    		whichEl.visibility = "hide";			
					    	}		
					    }        
					    if (whichEl.visibility == "hide") {        
					        whichEl.visibility = "show";        
					    }else {        
					        whichEl.visibility = "hide";        
					    }        
					    arrange();    
					}
				}
				onload = initIt;
							

相关资源