A couple of wise people on this forum mentioned to me that Javascript menus were a no no. Well, I would likt to replace mine, so how can I do it? I need drop menus with subtopics. If not javascript then how can I do it?
actually, that link produces great menus but it seems very complicated (you need to add a whole lot of code for Internet Explorer). Is that what it boils dowmn to then? A choice between Javascript and complex css? Is there any other way?
If you want a complicated thing like a drop-down menu, you're going to have to encode that complexity - either in CSS, Javascript or both (or Flash or Java or some other inaccessible alternative). The only "other way" is to make your menus simpler.
Having said that, there are other menu resources out there:
The Suckerfish dropdowns CSS method is not particularly complex.
It doesn't matter if you don't understand the CSS behind it though. The XHTML you use is really simple. That's the point.
There's a line in the beginning of the source code stating that you need an extra file for IE, if you download that it will work
"<!-- You will need this external csshover.htc file. -->
<!--[if IE]><style type="text/css" media="screen">body{behavior:url(/css/csshover.htc);}</style><![endif]-->"
is a good menu I've seen recently that uses javascript but doesn't rely on javascript. It is very cross-browser compatible, very accessible and is xhtml 1.0 compliant. It is also easy to populate and customise and has some VERY cool features.
* keyboard navigation
* long submenus that scroll if they dont fit on screen
* highlights the menu item depending on what page you're on (basically tells you where you are)
With CSS and javascript disabled the menu is displayed as a series of links within nested lists (<ul><li><a href="">etc,etc...</a></li></ul>). This is what the Search Engine spiders get to see
Tony
[red]_________________________________________________________________[/red] Webmaster -
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.