-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (28 loc) · 1.16 KB
/
index.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>menuSlider Demo</title>
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="scripts/thirdparty/tangram-1.5.2.2.js"></script>
<script type="text/javascript" src="scripts/thirdparty/tangram-custom-full-yui.js"></script>
<script type="text/javascript" src="scripts/menuSlider.js"></script>
</head>
<body>
<div id="content"></div>
</body>
<script type="text/javascript">
(function ($){
var menu = new $.ui.MenuSlider({
renderTo: $.dom.g("content"),
items : [{id: 1, className: "landscapes", url: "http://www.cnblogs.com/ddback-huwence/"},
{id: 2, className: "people", url: "http://www.cnblogs.com/ddback-huwence/"},
{id: 3, className: "nature", url: "http://www.cnblogs.com/ddback-huwence/"},
{id: 4, className: "urban", url: "http://www.cnblogs.com/ddback-huwence/"},
{id: 5, className: "abstract", url: "http://www.cnblogs.com/ddback-huwence/"}
]
});
menu.render();
})(baidu);
</script>
</html>