Line | |
---|
1 | <!doctype html> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>jQuery UI Slider - Vertical range slider</title> |
---|
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> |
---|
6 | <script type="text/javascript" src="../../jquery-1.3.2.js"></script> |
---|
7 | <script type="text/javascript" src="../../ui/ui.core.js"></script> |
---|
8 | <script type="text/javascript" src="../../ui/ui.slider.js"></script> |
---|
9 | <link type="text/css" href="../demos.css" rel="stylesheet" /> |
---|
10 | <style type="text/css"> |
---|
11 | #demo-frame > div.demo { padding: 10px !important; }; |
---|
12 | </style> |
---|
13 | <script type="text/javascript"> |
---|
14 | $(function() { |
---|
15 | $("#slider-range").slider({ |
---|
16 | �� orientation: "vertical", |
---|
17 | range: true, |
---|
18 | values: [17, 67], |
---|
19 | slide: function(event, ui) { |
---|
20 | $("#amount").val('$' + ui.values[0] + ' - $' + ui.values[1]); |
---|
21 | } |
---|
22 | }); |
---|
23 | $("#amount").val('$' + $("#slider-range").slider("values", 0) + ' - $' + $("#slider-range").slider("values", 1)); |
---|
24 | }); |
---|
25 | </script> |
---|
26 | </head> |
---|
27 | <body> |
---|
28 | |
---|
29 | <div class="demo"> |
---|
30 | |
---|
31 | <p> |
---|
32 | <label for="amount">Target sales goal (Millions):</label> |
---|
33 | <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" /> |
---|
34 | </p> |
---|
35 | |
---|
36 | <div id="slider-range" style="height:250px;"></div> |
---|
37 | |
---|
38 | </div><!-- End demo --> |
---|
39 | |
---|
40 | <div class="demo-description"> |
---|
41 | |
---|
42 | <p>Change the orientation of the range slider to vertical. Assign a height value via <code>.height()</code> or by setting the height through CSS, and set the <code>orientation</code> option to "vertical."</p> |
---|
43 | |
---|
44 | </div><!-- End demo-description --> |
---|
45 | |
---|
46 | </body> |
---|
47 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.