摘要:
/***隐藏元素*@param{String}elem*/functionhide(elem){varcurDisplay=getStyle(elem,'display');if(curDisplay!='none'){elem.oldDisplay=curDisplay;}elem.style.display='none';}/***显示元素*@param{String}elem*/functionshow(elem){elem.style.display=elem.oldDisply||'block';}/***设置透明度*@ 阅读全文