-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDemo.html
35 lines (35 loc) · 1.04 KB
/
Demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="Accordionjs.css">
<title>Title</title>
</head>
<style>
*{
padding: 0;
margin: 0;
}
.banner{
width: 900px;height: 400px;margin: 0 auto;
}
</style>
<body>
<div class="banner" >
<div class="mbanner"></div>
</div>
<script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="Accordionjs.js"></script>
<script>
$(".mbanner").Accordion({//banner幻灯
mod: "mouse",//mouse鼠标移上去模式,click点击切换模式
dtime: 1000,//延迟
auto: false,//自动切换
img:[//自定义图片信息,url图片地址,title标题,href跳转地址
{url:'images/1.jpg',title:'大海',href:'http://www.baidu.com'},
{url:'images/2.jpg',title:'冰山',href:'http://www.qq.com'},
{url:'images/3.jpg',title:'秋叶'}]//无地址,不需跳转
})
</script>
</body>
</html>