Login   Register  
PHP Classes
elePHPant
Icontem

File: treemenu.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Menno Merlijn  >  MenuTree  >  treemenu.js  >  Download  
File: treemenu.js
Role: Auxiliary data
Content type: text/plain
Description: javascript
Class: MenuTree
Generate hierarchical menu of links
Author: By
Last change:
Date: 7 years ago
Size: 703 bytes
 

Contents

Class file image Download
function treemenu(id,idBlok,img_dir,img_min,img_plus,img_open,img_close){
  if(document.getElementById(idBlok).style.display == 'block'){
    document.getElementById(idBlok).style.visibility = 'hidden';
    document.getElementById(idBlok).style.display = 'none';
    document.getElementById(id).innerHTML = 
      "<img src=\""+img_dir+img_plus+"\"><img src='"+img_dir+img_close+"' class=\"treemenu\">";
  }else{
    document.getElementById(idBlok).style.visibility = 'visible';
    document.getElementById(idBlok).style.display = 'block';
    document.getElementById(id).innerHTML = 
       "<img src=\""+img_dir+img_min+"\"><img src='"+img_dir+img_open+"' class=\"treemenu\">";
    
  }
}