How to implement drop-down menus like below?
http://losangeles.kijiji.开发者_如何学JAVAcom/c-SelectCategory
That page's search menus on upper left.
Best with jQuery.
You don't need jQuery for this. You can use plain 'ol CSS.
This article from pixelspread shows how to create a CSS Drop Down Menu resulting in this. You might also want to look into these following:
- CSS Horizontal Drop-Down-Menu
- Simple JavaScript Drop Down Menu ( If you really want a JavaScript based one. )
- jQuery Drop Down Menu ( Written with jQuery if you like that.. )
- Another one in jQuery + CSS with very good examples and help around it.
- You could also check out this page, which provides you with code for a jQuery Drop Down Menu ( provided in the other posters link )
For a really simple & lightweight solution, check the Son of Suckerfish dropdowns. Silly name but very elegant. It uses the :hover
pseudo-class to accomplish its magic.
精彩评论