-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
48 lines (48 loc) · 1.53 KB
/
test.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
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Self Clearing Input Test</title>
<script src="lib/prototype.js" type="text/javascript" charset="utf-8"></script>
<script src="self_clearing_input.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
document.observe("dom:loaded", function()
{
// setup _all_ the self-clearing input boxes
$$('.self_clearing').each(function(input)
{
new SelfClearingInput(input);
});
});
</script>
<style type="text/css" media="screen">
input[type="text"]{
padding:4px;
font:15px/15px arial,sans-serif;
color:#999;
width:100%;
border:2px solid #999;
margin:10px 0;
display:block;
}
fieldset{
width:400px;
border:5px solid #999;
background:#eee;
}
legend{
font:16px/16px arial, sans-serif;
color:#77c;
}
</style>
</head>
<body>
<fieldset>
<legend>Some Form</legend>
<input type="text" name="username" value="Enter your desired username" id="username" class="self_clearing" />
<input type="text" name="first_name" value="Enter your first name" id="first_name" class="self_clearing" />
<input type="text" name="last_name" value="Enter your last name" id="last_name" class="self_clearing" />
<input type="text" name="city" value="Enter your city" id="city" class="self_clearing" />
<input type="submit" name="some_name" value="Continue →" id="some_name">
</fieldset>
</body>
</html>