4
<title>Outside Events Testbed</title>
5
<style type="text/css">
7
font-family: Lucida Grande, Lucida Sans Unicode, Arial;
11
border: 1px solid #999;
14
margin: 0.5em 0 0 10px;
24
h2,p {margin-left: 10px;}
25
h4 { margin: 0; padding: 0;}
50
#events button { margin: 6px 0; }
53
.radio label { display: block; }
60
form { margin-top: 1em; }
63
background: #ff9 !important;
64
border-color: #f30 !important;
72
<h2>Outside Events Testbed</h2>
74
Each of the boxes below respond to an outside event by temporarily
75
changing color and displaying the originating event target. Poke around
76
at the page and the test controls to trigger each outside event.
79
In addition to native DOM events, try triggering Luke Smith's
80
<a href="http://yuilibrary.com/gallery/show/event-konami" title="up, up, down, down, left, right, left, right, b, a">Konami event</a>.
81
It will only fire once, so refresh the page if you want to try again.
84
<div class="box" id="blur">
90
<div class="box" id="change">
95
<div class="box" id="click">
97
<input type="button" value="button"><a href="#">link</a></h4>
100
<div class="box" id="dblclick">
104
<div class="box" id="focus">
106
<input size="3"></h4>
109
<div class="box" id="keydown">
111
<input size="3"></h4>
114
<div class="box" id="keypress">
116
<input size="3"></h4>
119
<div class="box" id="keyup">
121
<input size="3"></h4>
124
<div class="box" id="mousedown">
126
<input type="button" value="x"></h4>
129
<div class="box" id="mousemove">
133
<div class="box" id="mouseout">
137
<div class="box" id="mouseover">
141
<div class="box" id="mouseup">
143
<input type="button" value="button"></h4>
146
<div class="box" id="select">
150
<div class="box" id="submit" style="position: relative;">
152
<form style="position: absolute; right: 3px; top: 3px; margin: 0;"><input type="submit"></form>
155
<div class="box" id="konami">
157
<input size="3"></h4>
161
<div class="box" id="controls">
162
<h4>Test Controls</h4>
165
<option selected="selected">Option A</option>
166
<option>Option B</option>
167
<option>Option C</option>
169
<input type="text" id="text"><br/>
172
<button>button</button>
173
<a href="?linked" id="link">Link</a>
175
<div class="checkbox">
176
<label><input type="checkbox" id="coke">Coke</label>
177
<label><input type="checkbox" id="pepsi">Pepsi</label>
178
<label><input type="checkbox" id="pibb">Pibb</label>
181
<label><input type="radio" name="group" id="yes">Yes</label>
182
<label><input type="radio" name="group" id="no">No</label>
183
<label><input type="radio" name="group" id="maybe">Maybe</label>
185
<form method="get" action="">
186
<input id="submitButton" type="submit" value="Submit">
191
<script src="../../../../build/yui/yui.js"></script>
192
<script src="/dev/yui3-gallery/build/gallery-event-konami/gallery-event-konami.js"></script>
193
<script src="test-event-outside.js"></script>