?? admin.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 + -