Last change
on this file since 24245 was 24245, checked in by sjb48, 13 years ago |
Oran code for supporting format changes to document.
|
-
Property svn:executable
set to
*
|
File size:
1.6 KB
|
Line | |
---|
1 | <!doctype html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <title>jQuery UI Slider - Vertical slider</title>
|
---|
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
|
---|
6 | <script type="text/javascript" src="../../jquery-1.4.1.js"></script>
|
---|
7 | <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
|
---|
8 | <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
|
---|
9 | <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
|
---|
10 | <script type="text/javascript" src="../../ui/jquery.ui.slider.js"></script>
|
---|
11 | <link type="text/css" href="../demos.css" rel="stylesheet" />
|
---|
12 | <style type="text/css">
|
---|
13 | #demo-frame > div.demo { padding: 10px !important; };
|
---|
14 | </style>
|
---|
15 | <script type="text/javascript">
|
---|
16 | $(function() {
|
---|
17 | $("#slider-vertical").slider({
|
---|
18 | orientation: "vertical",
|
---|
19 | range: "min",
|
---|
20 | min: 0,
|
---|
21 | max: 100,
|
---|
22 | value: 60,
|
---|
23 | slide: function(event, ui) {
|
---|
24 | $("#amount").val(ui.value);
|
---|
25 | }
|
---|
26 | });
|
---|
27 | $("#amount").val($("#slider-vertical").slider("value"));
|
---|
28 | });
|
---|
29 | </script>
|
---|
30 | </head>
|
---|
31 | <body>
|
---|
32 |
|
---|
33 | <div class="demo">
|
---|
34 |
|
---|
35 | <p>
|
---|
36 | <label for="amount">Volume:</label>
|
---|
37 | <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" />
|
---|
38 | </p>
|
---|
39 |
|
---|
40 | <div id="slider-vertical" style="height:200px;"></div>
|
---|
41 |
|
---|
42 | </div><!-- End demo -->
|
---|
43 |
|
---|
44 | <div class="demo-description">
|
---|
45 |
|
---|
46 | <p>Change the orientation of the 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>
|
---|
47 |
|
---|
48 | </div><!-- End demo-description -->
|
---|
49 |
|
---|
50 | </body>
|
---|
51 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.