left_meun.js

来源:互联网 发布:学生p2p网络投资 编辑:程序博客网 时间:2024/06/15 17:42
 // JavaScrm_countpt Document
/* Hm_countDE or SHOW LEFT MENU */
var m_count=0;
function hideMenu_param(s_adress){
 var m=document.getElementById("mtd")
 var ms=document.getElementById("menu");
 var btn=document.getElementById("s_h_m");
 if (m_count==0){
  //m.style.backgroundColor="#ffffff";
  m.style.width="15";
  ms.style.display="none";
  btn.innerHTML="<img src= " + s_adress + "showMenu.gif>";
  m_count=1;
 }else if (m_count==1){
  m.style.backgroundColor="#f5f5f5";
  m.style.width="178";
  ms.style.display="block";
  btn.innerHTML="<img src= " + s_adress + "hideMenu.gif>";
  m_count=0;
 }
}
function hideMenu(){
 var m=document.getElementById("mtd")
 var ms=document.getElementById("menu");
 var btn=document.getElementById("s_h_m");
 if (m_count==0){
  //m.style.backgroundColor="#ffffff";
  m.style.width="15";
  ms.style.display="none";
  btn.innerHTML="<img src=\"images/showMenu.gif\">";
  m_count=1;
 }else if (m_count==1){
  m.style.backgroundColor="#f5f5f5";
  m.style.width="178";
  ms.style.display="block";
  btn.innerHTML="<img src=\"images/hideMenu.gif\">";
  m_count=0;
 }
}
/* ACCOUNT INFO LIST */
var timeid
function hide(){
document.getElementById("e").style.display="none";
}
function show(){
document.getElementById("e").style.display="block";
}
function clearHide(id){
clearTimeout(id)
}
function doHide(){
timeid=setTimeout('hide()',500)
}
原创粉丝点击