时时商务社区
标题:
织梦(dedecms)导航条dropdown.js的改进(附演示demo)
[打印本页]
作者:
bewin83
时间:
2018-2-13 20:39
可以设置一个一直都显示的二级菜单,修复了没有二级菜单时鼠标移上去仍然显示上一个二级菜单的问题.支持一级菜单鼠标离开事件
html代码
复制代码
代码如下:
我的网站
主 页
金融资讯
个人金融
企业金融
财经频道
支付结算
业务申请
重要公告
信用卡
首页列表
|
投资理财
|
个人贷款
|
个人消费贷款
|
信用贷款
|
汽车贷款
|
一手楼按揭
|
二手楼按揭
|
个人经营贷款
|
公司融资
|
贸易融资
|
公司理财
|
票据业务
|
项目融资
|
黄金
|
债券
|
外汇
|
基金
|
P0S支付
|
个人业务咨询
|
公司业务咨询
|
dropdown.js
复制代码
代码如下:
var cssdropdown = {
disappeardelay: 250,
disablemenuclick: false,
enableswipe: 1,
enableiframeshim: 1,
dropmenuobj: null,
ie: document.all,
firefox: document.getElementById && !document.all,
swipetimer: undefined,
bottomclip: 0,
getposOffset: function(what, offsettype) {
var totaloffset = (offsettype == "left") ? what.offsetLeft: what.offsetTop;
var parentEl = what.offsetParent;
while (parentEl != null) {
totaloffset = (offsettype == "left") ? totaloffset + parentEl.offsetLeft: totaloffset + parentEl.offsetTop;
parentEl = parentEl.offsetParent;
}
return totaloffset;
},
swipeeffect: function() {
if (this.bottomclip
演示地址:http://www.188163.com(我不知道啥时候失效...)
欢迎光临 时时商务社区 (http://bbs.4435.cn/)
Powered by Discuz! X3.2