国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal模块] Drupal7、6动态的菜单效果模块Nice Menu

[复制链接]
发表于 1-27-2012 04:17 | 显示全部楼层 |阅读模式
) B6 m7 Y  u2 I5 r# t8 H2 J. {
Nice Menu模块可以为Drupal站点创建动态的菜单效果,即鼠标停留在父菜单上时,子菜单可以向下、向左、向右的动态显示
# v9 I$ b7 ^6 `: @8 Z; A  X' m. J+ y2 A8 V6 x
3 M. L- Y3 v1 C+ e4 T7 J
! @5 c' d; [- X% S

  M; Y/ H; p0 ?) x$ E  n/ f
5 M$ h" T4 W* l; l4 g7 M下载地址:http://drupal.org/project/nice_menus8 Y* Q4 y: o6 P  H# A% Z" R

, P$ T7 y/ I" K, z
% {2 D/ V" x2 q. n9 ?
) d& O  y9 d0 Z) I9 a* o# y: z: `
" c8 b0 D2 n* m; w, @

Nice 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 2

The 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.

********************************************************7 V2 N4 N/ O7 E& E" D4 G
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.

$ q0 N" L4 C# D. p, m, I

|2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

GMT+8, 2-12-2025 03:22 , Processed in 1.053494 second(s), 123 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表