aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/slider/slider_method_disable.html
blob: d7ed75a1a849eb5490a6c8ce791e4de902494634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Slider Visual Test : Slider method disable</title>
	<link rel="stylesheet" href="../visual.css" type="text/css" />
	<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
	<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.slider.js"></script>
	<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>