⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 navbar.js

📁 欢迎大家分享本系统为bs架构的asp+access版本。<br>包含:员工信息
💻 JS
字号:
function moveleft(mask,menu){
if(mask&&menu){
menuwidth = mask.offsetWidth
actualwidth=menu.offsetWidth
if (document.all&&menu.style.pixelLeft>(menuwidth-actualwidth))
menu.style.pixelLeft-=150
}
}

function moveright(mask,menu){
if(mask&&menu){
menuwidth = mask.offsetWidth
actualwidth=menu.offsetWidth
if(document.all&&menu.style.pixelLeft<0)
menu.style.pixelLeft+=150
}
}

orgButton = null
orgBar = null

function clickbutton(){
  //alert()
  ele = window.event.srcElement
   while(ele){
		if(ele.tagName=="TABLE"){				
					break;
		}
		ele=ele.parentElement;
	}

//==================================================
  CurrBtn = ele
  CurrBar = ele.parentElement
  
   if(CurrBtn.state=="off"){
    if(orgButton!=null){
      orgButton.state = "off"
      orgButton.className = "ButtonNM" 
      orgBar.className = "BarTDNM" 
   }
    orgButton = CurrBtn
    orgBar = CurrBar 
    
    CurrBtn.className="ButtonClk"
    CurrBar.className="BarTDClk"
    CurrBtn.state = "on"
  }
}


function changeCss(){
    ele = window.event.srcElement
   while(ele){
		if(ele.tagName=="TABLE"){				
					break;
		}
		ele=ele.parentElement;
	}
   obj= ele
  if(obj.state=="off"){
  obj.orgclassName = obj.className
  obj.className = "ButtonHL"
  }
}
function reCss(){
    ele = window.event.srcElement
   while(ele){
		if(ele.tagName=="TABLE"){				
					break;
		}
		ele=ele.parentElement;
	}
   obj= ele
  if(obj.state=="off"){
  obj.className = obj.orgclassName
  }
}

function fnShow(obj){
  url = obj.Url
  window.frames("main").location.href = url + "?ID=" + document.form1.ID.value
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -