-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.html
55 lines (49 loc) · 1.23 KB
/
demo.html
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
48
49
50
51
52
53
54
55
<html>
<head>
<title>jQuery Hint Plugin</title>
<style>
div#container {
width: 950px;
margin: 0 auto;
font-size: 18px;
margin-top: 50px;
}
input {
font-size: 18px;
padding: 5px;
}
input#demo2 {
color: blue;
}
pre#code {
display:none;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="jquery.hint-1.1.js"></script>
<script type="text/javascript">
$(function(){
$("div#demo1 input[title!='']").hint();
$("input#demo2").hint({color:'green', resetCursorPos: false});
})
</script>
</head>
<body>
<div id="container">
<h1>jQuery Hint Plugin Demo</h1>
<div id="demo1">
<h3>Demo 1</h3>
<p>Watch it disappear:</p>
<input type="input" title="Enter your username" />
<code>
$("div#demo1 input[title!='']").hint();
</code>
</div>
<h3>Demo 2</h3>
<p>With options:</p>
<input type="input" id="demo2" title="Enter your username" />
<code>
$("input#demo2").hint({color:'green', resetCursorPos: false});
</code>
</div>
</body>