简明现代魔法 -> JavaScript -> Phatfusion 图片菜单 image menu

Phatfusion 图片菜单 image menu

2009-08-18

图片菜单效果演示

特点

2 optional onClick events - open & close
href passed to onClick events
stays open when clicked
closes when clicked
select item to pre-open

usage

var myMenu = new ImageMenu('imageMenu', {
openWidth:310,
onOpen:function(e,i){console.log(e)}
});

options

onOpen
a function to execute when an item is clicked open. If there is an href within the li then that is passed to the function.
onClose
same as above but when clicked closed.
openWidth
width in px of the items when rolled over. default: 200
transition
default: Fx.Transitions.quadOut
duration
the length of the transition. default: 400
open
the id or index of the item to open on start. default: null
border
a px value to tweak the widths when an item is open. default: 0

随机文章推荐
网站分类


注:如需转载本文,请注明出处(原文链接),谢谢。更多精彩内容,请进入简明现代魔法首页。

进入新博客
喜欢本文,就分享它吧
给我留言
您的名字:
您的邮件:
您的网站:


 

copyright © 2009 简明现代魔法    学习、分享、进步

power by Gonn 感谢所有关心和支持本站的朋友们