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

📄 admin.js

📁 基于j2ee的物流软件
💻 JS
字号:
function menuShow(strobj,maxheight,strobj2)
{
   //展开下拉菜单
  if(strobj.style.pixelHeight<maxheight)
  {
    strobj.style.pixelHeight+=maxheight/10;
	strobj.filters.alpha.opacity+=20;
	strobj2.background="admin/images/title_bg_hide.gif";
    if(strobj.style.pixelHeight==maxheight/10)
	  strobj.style.display='block';
	mystrobj=strobj;
	mymaxheight=maxheight;
	mystrobj2=strobj2;
	setTimeout('menuShow(mystrobj,mymaxheight,mystrobj2)','5');
  }
}
function menuHide(strobj,maxheight,strobj2)
{
  //收起下拉菜单
  if(strobj.style.pixelHeight>0)
  {
    if(strobj.style.pixelHeight==maxheight/5)
	  strobj.style.display='none';
    strobj.style.pixelHeight-=maxheight/5;
	strobj.filters.alpha.opacity-=10;
	strobj2.background="admin/images/title_bg_show.gif";
	mystrobj=strobj;
	mymaxheight=maxheight
	mystrobj2=strobj2;
	setTimeout('menuHide(mystrobj,mymaxheight,mystrobj2)','5');
  }
  else
    if(whichContinue)
	  whichContinue.click();
}
function menuChange(strobj,maxheight,strobj2)
{//指定下拉菜单
  if(strobj.style.pixelHeight)
  {
    menuHide(strobj,maxheight,strobj2);
	whichOpen='';
	whichcontinue='';
  }
  else
    if(whichOpen)
	{
	  whichContinue=strobj2;
      whichOpen.click();
	}
	else
	{
	  menuShow(strobj,maxheight,strobj2);
	  whichOpen=strobj2;
	  whichContinue='';
	}
}

//选中所有删除项目
function CheckAll(elementsA,elementsB)
{
	var len = elementsA;
	if(len.length > 0)
	{
		for(i=0;i<len.length;i++)
		{
			elementsA[i].checked = true;
		}
		if(elementsB.checked ==false)
		{
			for(j=0;j<len.length;j++)
			{
				elementsA[j].checked = false;
			}
		}
	}
	else
	{
		len.checked = true;
		if(elementsB.checked == false)
		{
			len.checked = false;
		}
	}
}

⌨️ 快捷键说明

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