jQuery实现手风琴效果【详细注解】
来源:互联网 发布:唐山学院网络教学平台 编辑:程序博客网 时间:2024/05/14 17:47
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script language="javascript" type="text/javascript" src="../../include/jquery.js"></script>
<script language="javascript" type="text/javascript" src="../../include/jquery-ui-1.8.18.custom.min.js"></script>
<link rel="stylesheet" href="../../include/css/ui-lightness/jquery-ui-1.8.18.custom.css" />
<script language="javascript" type="text/javascript">
$(function (){
$("#accordion").accordion({
header:"h3",//头信息 与页面div中一致
event:"mouseover",//鼠标移上去的效果
active:2,//默认展开的面板 从0开始 默认值0
animated:"bounceslide",//面板展开的动画效果
autoHeight:true,//面板的高度 是否自动增高
fillSpace:true,//填充父元素
icons:{ //图标设置 header默认时的效果 headerSelected代表面板激活状态下的效果
header:"ui-icon-carat-2-e-w",
headerSelected:"ui-icon-carat-2-n-s"
}
}).sortable({
axis:"y", //只能在y轴拖拽排序 x轴 x,y 默认x,y
handle:"h3", //只能拖拽h3
/*stop:function(){
//stop事件 event浏览器自带的事件处理对象 ui操作控制的对象
ui.item.children("h3").triggerHandler("focusout");
} */
});
//通过绑定的操作方式,写事件处理
$("#accordion").bind("sortstop",function(event,ui){
alert("呵呵!!!");
})
});
</script>
</head>
<body>
<div id="accordion" style="width:600px; height:500px;border:#0F0 solid 1px;">
<div>
<h3><a href="#">First</a></h3>
<div>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
</div>
<div>
<h3><a href="#">Second</a></h3>
<div>Phasellus mattis tincidunt nibh.</div>
</div>
<div>
<h3><a href="#">Third</a></h3>
<div>Nam dui erat, auctor a, dignissim quis.</div>
</div>
</div>
</body>
</html>
- jQuery实现手风琴效果【详细注解】
- jQuery实现手风琴效果【详细注解】
- jquery实现手风琴效果
- jquery实现手风琴效果
- jQuery实现手风琴效果
- 使用jQuery实现手风琴效果
- jquery插件--实现手风琴效果
- jquery插件实现手风琴效果
- jquery插件实现手风琴效果!
- 用jquery实现手风琴效果
- jquery插件实现手风琴效果!
- 三行jquery实现手风琴效果
- Jquery 实现手风琴切换效果
- 用jquery插件实现手风琴效果
- 使用jQuery实现 模拟手风琴效果
- 基于jQuery实现的手风琴效果Accordion
- jQuery实现侧边导航手风琴效果
- jQuery手风琴效果
- 用juqery写的弹窗
- ListView的使用
- 第六周任务3
- B - 反正切函数的应用解题报告
- jquery插件制作进度条
- jQuery实现手风琴效果【详细注解】
- 传至播客学习笔记——函数
- 第六周任务三
- Spinner的使用
- poj 1475 Pushing Boxes
- 素女经
- 6-4 三角形类(求面积,周长,判断直角,等腰...)
- jquery插件之手风琴
- S2SH集成,数据库使用mysql,查询的时候出现字符集的错误