Guest User

Untitled

a guest
Apr 26th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. window.onload = function() {
  2. if(!document.body.currentStyle) return;
  3. var subs = document.getElementsByName('submenu');
  4. for(var i=0; i<subs.length; i++) {
  5. var li = subs[i].parentNode;
  6. if(li && li.lastChild.style) {
  7. li.onmouseover = function() {
  8. this.lastChild.style.display = 'block';
  9. }
  10. li.onmouseout = function() {
  11. this.lastChild.style.display = 'none';
  12. }
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment