.
Your page is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice first.
That said, I tested my theory and it works but there's a horizontal scrollbar. So I changed it a little. those two lines from my first post:
Code:
var os=(/\[base\]/.test($anchor.attr('rel'))?-this.parentNode.offsetLeft:0) //check for rel="submenuid[left]" to indicate submenu should be based to the left of the parent
$submenu.wrap('<div class="megawrapper" style="z-index:'+ddmegamenu.startzindex+';position:absolute;top:0;left:0;visibility:hidden"><div style="position:absolute;overflow:hidden;left:'+(os)+';top:0;width:100%;height:100%;"></div></div>')
should be changed to:
Code:
var os=(/\[base\]/.test($anchor.attr('rel'))?-this.parentNode.offsetLeft+$mainmenu.offset().left:0) //check for rel="submenuid[left]" to indicate submenu should be based to the left of the parent
$submenu.wrap('<div class="megawrapper" style="z-index:'+ddmegamenu.startzindex+';margin-left:'+os+'px;position:absolute;top:0;left:0;visibility:hidden"><div style="position:absolute;overflow:hidden;left:0;top:0;width:100%;height:100%;"></div></div>')
Or you can download the edited script (right click and 'Save As'):
ddmegamenu.js
and use that instead of your current version.
The browser cache may need to be cleared and/or the page refreshed to see changes.
Bookmarks