Guest User

Untitled

a guest
Jan 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. var menuCells = document.getElementById('menu').getElementsByTagName('td'),
  2. menuSub, menuChildren, menuCount = 0;
  3. for(menuCount; menuCount < menuCells.length; menuCount++) {
  4. menuSub = menuCells[menuCount].getElementsByTagName('div')[0];
  5. if(menuSub) {
  6. menuChildren = menuSub.getElementsByTagName('div');
  7. if(menuChildren.length > 0) {
  8. menuSub.className += ' has-children';
  9. }
  10. }
  11. }
Add Comment
Please, Sign In to add comment