下拉菜单制作(Chrome CSS Drop Down Menu (v2.5))

 原文:http://dynamicdrive.com/dynamicindex1/chrome/index.htm

 

htmld代码如下:

 

代码讲解:

第一个div,"chromemenu"为memu bar,下面的几个div为下拉菜单。注意ID不能重复。
代码的下方有一段js代码,把chromemenu传给该js函数来启动该下拉菜单,若该页面中有
多个下拉菜单的话,直接把ID用逗号分开传给该js函数即可。
 

For Your Information

You can easily set the alignment of the menu items. Inside chromestyle.css, find and edit the line:

text-align: center; /*set value to "left", "center", or "right"*/

At the top of "chrome.js", there are a few variables you may want to customize:

 

disappeardelay: 250, //set delay in miliseconds before menu disappears onmouseout
dropdownindicator: '<img src="down.gif" border="0" />', //specify full HTML to add to end of each menu item with a drop down menu
enablereveal: [true, 8], //enable swipe effect? [true/false, steps (Number of animation steps. Integer between 1-20. Smaller=faster)]
enableiframeshim: 1, //enable "iframe shim" in IE5.5 to IE7? (1=yes, 0=no)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值