2010-03-12 03:18:34 +00:00
|
|
|
<!DOCTYPE html>
|
2008-12-30 04:16:51 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2010-10-13 14:39:50 +00:00
|
|
|
<meta charset="utf-8">
|
2009-01-20 21:10:12 +00:00
|
|
|
<title>jQuery UI Slider - Multiple sliders</title>
|
2010-10-13 14:39:50 +00:00
|
|
|
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
2011-10-18 14:00:03 +00:00
|
|
|
<script src="../../jquery-1.6.4.js"></script>
|
2010-10-13 14:39:50 +00:00
|
|
|
<script src="../../ui/jquery.ui.core.js"></script>
|
|
|
|
<script src="../../ui/jquery.ui.widget.js"></script>
|
|
|
|
<script src="../../ui/jquery.ui.mouse.js"></script>
|
|
|
|
<script src="../../ui/jquery.ui.slider.js"></script>
|
|
|
|
<link rel="stylesheet" href="../demos.css">
|
|
|
|
<style>
|
|
|
|
#demo-frame > div.demo { padding: 10px !important; }
|
|
|
|
#eq span {
|
|
|
|
height:120px; float:left; margin:15px
|
|
|
|
}
|
2008-12-31 14:25:59 +00:00
|
|
|
</style>
|
2010-10-13 14:39:50 +00:00
|
|
|
<script>
|
2008-12-30 04:16:51 +00:00
|
|
|
$(function() {
|
2009-02-28 12:24:42 +00:00
|
|
|
// setup master volume
|
2010-10-13 14:39:50 +00:00
|
|
|
$( "#master" ).slider({
|
2009-02-28 12:24:42 +00:00
|
|
|
value: 60,
|
2010-02-05 02:30:48 +00:00
|
|
|
orientation: "horizontal",
|
|
|
|
range: "min",
|
|
|
|
animate: true
|
2008-12-30 04:16:51 +00:00
|
|
|
});
|
2009-02-28 12:24:42 +00:00
|
|
|
// setup graphic EQ
|
2010-10-13 14:39:50 +00:00
|
|
|
$( "#eq > span" ).each(function() {
|
2009-02-28 12:24:42 +00:00
|
|
|
// read initial values from markup and remove that
|
2010-10-13 14:39:50 +00:00
|
|
|
var value = parseInt( $( this ).text(), 10 );
|
|
|
|
$( this ).empty().slider({
|
2010-02-05 02:30:48 +00:00
|
|
|
value: value,
|
|
|
|
range: "min",
|
|
|
|
animate: true,
|
|
|
|
orientation: "vertical"
|
|
|
|
});
|
2008-12-30 04:16:51 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
2008-12-30 22:01:56 +00:00
|
|
|
<body class="ui-widget-content" style="border:0;">
|
2008-12-30 04:16:51 +00:00
|
|
|
|
2008-12-30 19:08:39 +00:00
|
|
|
<div class="demo">
|
|
|
|
|
2008-12-31 04:08:58 +00:00
|
|
|
<p class="ui-state-default ui-corner-all ui-helper-clearfix" style="padding:4px;">
|
2010-10-13 14:39:50 +00:00
|
|
|
<span class="ui-icon ui-icon-volume-on" style="float:left; margin:-2px 5px 0 0;"></span>
|
|
|
|
Master volume
|
2008-12-30 22:01:56 +00:00
|
|
|
</p>
|
|
|
|
|
2009-02-28 12:24:42 +00:00
|
|
|
<div id="master" style="width:260px; margin:15px;"></div>
|
2008-12-30 22:01:56 +00:00
|
|
|
|
2008-12-31 04:08:58 +00:00
|
|
|
<p class="ui-state-default ui-corner-all" style="padding:4px;margin-top:4em;">
|
2010-10-13 14:39:50 +00:00
|
|
|
<span class="ui-icon ui-icon-signal" style="float:left; margin:-2px 5px 0 0;"></span>
|
|
|
|
Graphic EQ
|
2008-12-30 22:01:56 +00:00
|
|
|
</p>
|
2008-12-31 05:01:58 +00:00
|
|
|
|
2009-02-28 12:24:42 +00:00
|
|
|
<div id="eq">
|
|
|
|
<span>88</span>
|
|
|
|
<span>77</span>
|
|
|
|
<span>55</span>
|
|
|
|
<span>33</span>
|
|
|
|
<span>40</span>
|
|
|
|
<span>45</span>
|
|
|
|
<span>70</span>
|
|
|
|
</div>
|
2008-12-30 19:08:39 +00:00
|
|
|
|
|
|
|
</div><!-- End demo -->
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-13 14:39:50 +00:00
|
|
|
<div class="demo-description" style="clear:left;">
|
|
|
|
<p>Combine horizontal and vertical sliders, each with their own options, to create the UI for a music player.</p>
|
2008-12-30 19:08:39 +00:00
|
|
|
</div><!-- End demo-description -->
|
2008-12-31 04:08:58 +00:00
|
|
|
|
2008-12-30 04:16:51 +00:00
|
|
|
</body>
|
|
|
|
</html>
|