Posted By

leoh on 08/09/06


Tagged

div js class changer


Versions (?)

div class changer


 / Published in: JavaScript
 

  1. function changeDiv(wdiv) {
  2. thediv = document.getElementById(wdiv);
  3. if(thediv.className == 'folderclosed'){
  4. thediv.className = 'folderopen';
  5. } else if (thediv.className == 'folderopen'){
  6. thediv.className = 'folderclosed';
  7. }
  8. }

Report this snippet  

You need to login to post a comment.