Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var menuCells = document.getElementById('menu').getElementsByTagName('td'),
- menuSub, menuChildren, menuCount = 0;
- for(menuCount; menuCount < menuCells.length; menuCount++) {
- menuSub = menuCells[menuCount].getElementsByTagName('div')[0];
- if(menuSub) {
- menuChildren = menuSub.getElementsByTagName('div');
- if(menuChildren.length > 0) {
- menuSub.className += ' has-children';
- }
- }
- }
Add Comment
Please, Sign In to add comment