|
The JS+CSS solution can be made to be just as functional (and good-looking) as a pure CSS solution. And since the visitor needs to have JS enabled to view either one, you're stuck with users that have JS enabled if you want any type of dynamic menu.
But take heart ... almost everyone who surfs the web has Javascript enabled, unless they have specifically disabled it (either because of paranoia, a Microsoft suggested 'fix' for a security issue, or because their systems are simply incapable of using it). Just make sure that the primary menu items are clickable and lead to a page where normal, non-scripted links are available for the submenu items. That way, if the visitor doesn't use JS for some reason, they can still navigate your site.
Actually, the JS+CSS solution is more useful than the pure CSS solution due to the reason I mentioned earlier; that some browsers don't respond to a :hover event over a DIV, while they all respond to an onmouseover event.
Last edited by StupidScript; 11-30-2006 at 04:17 PM..
Reason: Added last sentence
|