2010-03-12 03:18:34 +00:00
|
|
|
<!DOCTYPE html>
|
2009-04-02 00:08:15 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2010-03-12 03:18:34 +00:00
|
|
|
<meta charset="UTF-8" />
|
2009-04-02 00:08:15 +00:00
|
|
|
<title>Slider Visual Test : Slider method disable</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-04-02 00:08:15 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
$("#slider").slider({
|
|
|
|
range: true,
|
|
|
|
values: [25, 75]
|
|
|
|
});
|
|
|
|
$("#slider").slider("disable");
|
|
|
|
$(".hover").disableSelection().addClass("ui-corner-all");
|
|
|
|
$("#hover-enable").mouseover(function() {
|
|
|
|
$("#slider").slider("enable");
|
|
|
|
});
|
|
|
|
$("#hover-disable").mouseover(function() {
|
|
|
|
$("#slider").slider("disable");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
|
|
.hover { width: 250px; height: 75px; color: white; font-size: 3em; text-align: center; line-height: 2.5em; cursor: default; margin: 1em 1em 0 0; float: left; }
|
|
|
|
#hover-enable { background: #4e9a06; }
|
|
|
|
#hover-disable { background: #cc0000; }
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<a href="#">tab before</a>
|
|
|
|
<div id="slider"></div>
|
|
|
|
<a href="#">tab after</a>
|
|
|
|
|
|
|
|
<hr style="margin-top:100px;"/>
|
|
|
|
|
|
|
|
<div id="hover-enable" class="hover">hover to enable</div>
|
|
|
|
<div id="hover-disable" class="hover">hover to disable</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|