Advertisement
kazlik

Untitled

Oct 27th, 2011
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var show = 1;
  2. function change(id) {
  3.   var a = 1;
  4.   while (a < 5){
  5.     document.getElementById('c' + a).style.display='none';
  6.     document.getElementById('m' + a).setAttribute('class', 'menu_edit');
  7.     a++;
  8.   }
  9.   document.getElementById('m' + id).setAttribute('class', 'menu_edit_active');
  10.   document.getElementById('c' + id).style.display='block';
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement