scrollview_paging.html revision 6448ea60e198da82d2ea7fc33d1f1ecf3c3c8b74
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<link rel="stylesheet" href="/build/cssreset/reset-min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="assets/tests.css" type="text/css" media="screen" title="no title" charset="utf-8">
#scrollable {
white-space: nowrap;
text-align: center;
}
#scrollable li {
border-bottom: 0;
}
</style>
</head>
<body class="yui3-skin-sam">
<div class="header">
</div>
<div id="scrollable" class="yui3-scrollview-loading paged">
<ul>
<li><img src="http://farm4.static.flickr.com/3358/3644583408_d7e8d4ee44.jpg" style="border:2px solid red" /></li>
<li><img src="http://farm4.static.flickr.com/3358/3644583408_d7e8d4ee44.jpg" style="border:2px solid blue" /></li>
<li><img src="http://farm4.static.flickr.com/3358/3644583408_d7e8d4ee44.jpg" style="border:2px solid green" /></li>
<li><img src="http://farm4.static.flickr.com/3358/3644583408_d7e8d4ee44.jpg" style="border:2px solid yellow" /></li>
</ul>
</div>
<div id="pager">
<button id="prev-page">Prev</button>
<button id="next-page">Next</button>
</div>
YUI({filter:"raw"}).use('dump', 'scrollview', 'scrollview-paginator', function(Y) {
var scrollView = new Y.ScrollView({
contentBox : '#scrollable',
width : 320
});
selector: 'li'
});
});
</script>
</body>
</html>