2010-03-12 03:18:34 +00:00
|
|
|
<!DOCTYPE html>
|
2009-08-08 12:18:02 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2010-03-12 03:18:34 +00:00
|
|
|
<meta charset="UTF-8" />
|
2009-08-08 12:18:02 +00:00
|
|
|
<title>Slider Visual Test : Slider option animate true</title>
|
|
|
|
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
2010-02-16 01:38:23 +00:00
|
|
|
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
|
2011-10-18 14:00:03 +00:00
|
|
|
<script type="text/javascript" src="../../../jquery-1.6.4.js"></script>
|
2009-09-17 10:39:12 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
2009-12-16 22:20:18 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
2010-01-01 12:43:36 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
|
2009-09-17 10:39:12 +00:00
|
|
|
<script type="text/javascript" src="../../../ui/jquery.ui.slider.js"></script>
|
2009-10-12 10:50:38 +00:00
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
fieldset { padding: 1em; margin: 1em; }
|
|
|
|
legend { font-size: 1.3em; font-family: monospace; font-weight: bold; }
|
|
|
|
#slider1 { margin: 1em; }
|
|
|
|
#slider2 { margin: 1em; height: 400px; }
|
|
|
|
</style>
|
|
|
|
|
2009-08-08 12:18:02 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
2009-10-12 10:50:38 +00:00
|
|
|
$("#slider1").slider({
|
|
|
|
animate: true,
|
|
|
|
step: 10
|
|
|
|
});
|
|
|
|
$("#slider2").slider({
|
|
|
|
animate: true,
|
|
|
|
orientation: 'vertical',
|
|
|
|
step: 5,
|
|
|
|
values: [5, 15, 35, 75]
|
2009-08-08 12:18:02 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2009-10-12 10:50:38 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>$("#slider1").slider({
|
|
|
|
animate: true,
|
|
|
|
step: 10
|
|
|
|
});</legend>
|
|
|
|
<div id="slider1"></div>
|
|
|
|
<button onclick="$('#slider1').slider('value', 15);">method value: 15</button>
|
|
|
|
<button onclick="$('#slider1').slider('value', 75);">method value: 75</button>
|
|
|
|
<button onclick="$('#slider1').slider('option', 'value', 25);">option value: 25</button>
|
|
|
|
<button onclick="$('#slider1').slider('option', 'value', 85);">option value: 85</button>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>$("#slider2").slider({
|
|
|
|
animate: true,
|
|
|
|
orientation: 'vertical',
|
|
|
|
step: 5,
|
|
|
|
values: [5, 15, 35, 75]
|
|
|
|
});</legend>
|
|
|
|
<div id="slider2"></div>
|
|
|
|
<button onclick="$('#slider2').slider('values', [10, 20, 30, 40]);">method values: [10, 20, 30, 40]</button>
|
|
|
|
<button onclick="$('#slider2').slider('values', [80, 70, 60, 50]);">method values: [80, 70, 60, 50]</button>
|
|
|
|
<button onclick="$('#slider2').slider('option', 'values', [20, 30, 40, 50]);">option values: [20, 30, 40, 50]</button>
|
|
|
|
<button onclick="$('#slider2').slider('option', 'values', [90, 80, 70, 60]);">option values: [90, 80, 70, 60]</button>
|
|
|
|
</fieldset>
|
2009-08-08 12:18:02 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|