Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload = function() {
- if(!document.body.currentStyle) return;
- var subs = document.getElementsByName('submenu');
- for(var i=0; i<subs.length; i++) {
- var li = subs[i].parentNode;
- if(li && li.lastChild.style) {
- li.onmouseover = function() {
- this.lastChild.style.display = 'block';
- }
- li.onmouseout = function() {
- this.lastChild.style.display = 'none';
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment