1) Script Title: AnyLink CSS Menu 2.0
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...anylinkcss.htm
3) Describe problem: I have implemented AnyLink CSS Menu 2.0 on a web site I am developing and have run into a problem I have not been able to solve.
The code for the web site is too long for posting on a forum but can be readily located by following this link - http://wycherail.co.uk/srs/calendar.html - please feel free to wander around other the pages as well.
The problem I have is making the sub-menu 'stick' to the 'master' menu button in the way it does on the demonstration page on the Dynamic Drive site.
A requirement for my site pages is to have the main menu visible at all times in the left hand 'column' regardless of whether the main part of the page has been scrolled or not. This has been achieved by positioning the #navigation division as 'fixed'. The right hand column (#main division) is also positioned to set co-ordinates but is left as 'static' so it can be scrolled as necessary. The background column colours are implemented by use of a background image.
anylinkcssmenu.js has been copied to the web site exactly as it was downloaded from DynamicDrive. A cut down version of the .anylinkcss style has been incorporated into srs.css, as most of the original content of the anylinkcssmenu was not needed in this implementation.
Currently the two sub-menus pop up with the desired appearance and style (they are attached to main menu buttons Publications and Bookstall) and horizontal position ok. Vertically they seem to attach themselves positionally to the #main division in some way. The result of this becomes apparent when a page is scrolled down - the sub menu is higher than it should be and, on longer pages, out of sight entirely!
I have tried different settings in the .anylinkcss style and also the solution suggested in thread 12497, but to no avail. Presumably I need to change anylinkcssmenu.js in some way. But how and where?
Can anyone suggest a solution or modification that will allow each sub-menu top entry to line up with the relevant 'master' menu button and remain lined up in that position regardless of whether the page is scrolled down or not.
Any help or guidance will be much appreciated.



Reply With Quote

Bookmarks