3 {1 O/ v7 }8 Z- vNice Menu模块可以为Drupal站点创建动态的菜单效果,即鼠标停留在父菜单上时,子菜单可以向下、向左、向右的动态显示8 S9 J9 B% V! }+ M7 w t8 y8 E
2 ~( _7 ?9 l- B. \
9 v0 w9 Y- Q. U6 G' [; d9 P$ r![](http://drupal.org/files/images/nice_menus.png)
Z0 i4 _) M* s
0 ~( `" B2 w2 t, b: k1 |, U, S- |" w! H1 ^6 |8 l; N
下载地址:http://drupal.org/project/nice_menus; F/ R/ g" q+ j. i$ C$ h3 [
8 n7 T, L- k( W! i. d, \# ]& U& a2 S4 F- O1 R
/ g, M+ Y9 |$ O- U
$ x$ c h, Y% X2 v7 l0 i- v. jNice Menus enables drop-down/right/left expandable menus. It uses only CSS for most browsers, with minimal Javascript for IE6. (Version 2 uses the Superfish jQuery plugin for all browsers, with an option to disable JS, and falls back to CSS-only for browsers that can handle it.) Three styles/types of menus are currently possible: horizontal, menus drop down; vertical, menus fly to the left; vertical, menus fly to the right. There is a handbook page that provides a list of sites that use Nice menus. Nice Menus creates blocks that may be associated with any existing site menu which can be placed wherever normal blocks can be placed in a theme. For themers, it is also possible to theme a menu as a Nice Menu directly by using the provided theme functions so a block is not necessary. A specific theme function for the Primary Links menu is available. The theme functions also allow a developer to pass in a custom menu tree of their making (i.e. not using a Drupal menu.) There is more information on how to use theme functions in thedocumentation. The module comes with a simple, generic color scheme which can be fully overridden either by adding the override CSS to the theme's normal stylesheet or by creating a Nice Menus CSS file and telling Nice Menus to use that rather than its own default one through the global theme configuration. Several CSS override examples are provided in the included README.txt file and in the handbook. If you are having problems with Nice Menus, make sure you read the FAQ and search the issue queue to see if others have already addressed them. CSS Problems: Nice menus will give you easy to use, plug and play blocks with flyout menus but does require CSS work to get customized styling. CSS support issues are not supported in this issue queue and will be closed. If you have CSS styling questions, you can try asking on the forums, #drupal-themes IRC or the Themes mailing list. Version 2The 6.x-2.x version has many new features and some rewriting. This is what the Drupal 7 upgrade will be written from. The 1.x version of Nice Menus will not be supported once Drupal 7 is released. ********************************************************# X) Q; A2 ]% B$ t9 w, ^% b0 h( P
UPGRADE NOTE: You MUST read the UPGRADE.txt if upgrading from 6.x-1.x. You should run upgrade.php to make sure all updates happen AND the cache gets cleared. Notable changes include: the theme function names have changed so if you are using them in your theme templates you will need to update the function name when you upgrade, and there are also several important CSS changes as well which could effect your custom CSS.
* w) u# B1 V i/ C8 z |