Difference between revisions of "Template:Reading2"
Line 91: | Line 91: | ||
} | } | ||
var subM = document.getElementById("SubMenu"); | var subM = document.getElementById("SubMenu"); | ||
+ | var Menu = document.getElementById("Menu"); | ||
subM.innerHTML= submenuHTML; | subM.innerHTML= submenuHTML; | ||
− | var offset = (100*index); | + | var offset = Menu.left + (100*index); |
subM.style.left = 2 + offset + 'px'; | subM.style.left = 2 + offset + 'px'; | ||
} | } |
Revision as of 12:05, 18 August 2015