I see that the Javascript code tries to identify the position of the tabs themselves in order to position the dropdowns, and that seems to be where the issue is.
Actually no. If my suspicions are correct, the issue is due to the fact that the HTML for your drop down menus are added inside positioned elements on the page (ie: absolute or relative). When that happens, the drop down menus' positions can become incorrect.
One thing you can try is finding the below line inside the .js file, and adding to it the line in red:
Code:
document.getElementById(relvalue).firstlink=document.getElementById(relvalue).getElementsByTagName("a")[0]
document.body.appendChild(document.getElementById(relvalue))
Then for the initalization code on your page that follows the menu's HTML, for example:
Code:
<script type="text/javascript">
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("bluemenu", 0)
</script>
The above needs to be called after the document has loaded, so something like:
Code:
<script type="text/javascript">
window.onload=function(){
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("bluemenu", 0)
}
</script>
Or if you have access to the "footer" area of your page, call the original initialization code at the very end of the page, which is better than calling it via window.onload.
Bookmarks