Slide 1 of 53
previous (not available)
TechShare 2007
Slide 2 of 53
Slide 3 of 53
Slide 4 of 53
Slide 5 of 53
Slide 6 of 53
Slide 7 of 53
Slide 8 of 53
1: a:hover, a:focus, a:active {
2: color: white;
3: background-color: black; }
1: element.onfocus = highlightFocus;
2: element.onblur= unHighlightFocus;
3: ...
4: addClassName(element, 'highlighted');
5: removeClassName(element, 'highlighted');
Slide 9 of 53
Slide 10 of 53
Slide 11 of 53
Slide 12 of 53
2: <li class="cmd_newMsg" onkeyup="handleKeyUp(this, event)"> New Message</li>
2: <li class="cmd_newMsg menuItem">New Message</li>
3: JS Pseudocode:
5: Find all elements that contain a particular class name
6: for each found element, attach an appropriate event handler
Slide 13 of 53
Slide 14 of 53
Slide 15 of 53
Slide 16 of 53
Slide 17 of 53
Slide 18 of 53
Slide 19 of 53
2: <input type="text" name="search" />
3: <input type="submit" value="Search" />
2: <input type="text" name="search" title="Search criteria"/>
3: <input type="submit" value="Search" />
Slide 20 of 53
1: <input type="text" name="searchtext" />
2: <input type="submit" name="mail" value="search mail" />
3: <input type="submit" name="web" value="search the web" />
1: <input type="text" name="searchtext" title="Search" />
2: <input type="submit" name="mail" value="search mail" />
4: <input type="submit" name="web" value="search the web"
5: title="search the web: opens in a new window" />
Slide 21 of 53
Before control; in left-to-right languages, either to the left or immediately above the control. Buttons are self-labelled labels. Check boxes and radio buttons are special types of buttons, and so the label is part of the button (increases target area), and placed immediately after the control to show the semantic difference
| Control | label |
|---|---|
| text, text area, select | To the left or immediately above |
| check box and radio buttons | Immediately after the control |
| buttons | self-labelled |
Slide 22 of 53
1: label: <input type="text" size="30" name="uname" />
2: <label></strong>label: <input type="text" size="30" name="uname" /><strong></label>
1: <label for="uname">label:</label>
2: <input type="text" size="30" id="uname" name="uname">
1: <label for="uname">label:
2: <input type="text" size="30" id="uname" name="uname">
3: </label>
Slide 23 of 53
1: <select name="city">
2: <option value="-1">choose a city</option>
4: <option value="1">Birmingham</option>
5: <option value="2">London</option>
6: </select>
1: <select name="city" title="choose a city">
2: <option value="-1">choose a city</option>
3: <option value="1">Birmingham</option>
5: </select>
Slide 24 of 53
1: <label for="city">City</label>
2: <select name="city" id="city">
3: <option value="-1">choose a city</option>
4: <option value="1">Birmingham</option>
6: <option value="2">London</option>
7: </select>
Slide 25 of 53
1: <label for="multi1">name</label>
2: <input type="text" id="multi1" name="multi">
3: first name optional
1: <label
2: for="multi2">name <input type="text" id="multi2" name="multi">
4: first name optional</label>
Slide 26 of 53
1: <label for="multi3">name</label>
2: <input type="text" id="multi3" name="multi">
3: <label for="multi3">first name optional</label>
1: <label
2: for="multi4">name (first name optional)
3: </label>
4: <input type="text" id="multi4" name="multi">
Slide 27 of 53
Recommended
2: <label for="a">input 1
3: <span class="formhint">tip: between 1 and 4</span>
5: </label>
6: <input class="range:1-4" id="a">
Recommended
2: <label for="a">
3: <img id="errorimga" height="16" alt="error" src="error.png">
4: input 1
5: <span class="formhint">tip: between 1 and 4</span>
7: <em class="errortext" id="errortexta">must be within 1 and 4</em>
8: </label>
9: <input class="range:1-4" id="a">
Slide 28 of 53
1: .hidden {
2: position: absolute;
3: left: 0;
4: top: -999em;
5: width: 1em;
6: height: 1em;
7: overflow: hidden;
8: }
1: <input type="text" id="search3" name="search3" title="search criteria">
3: <input type="submit" value="Search">
Slide 29 of 53
| code | item | quantity | price |
|---|---|---|---|
| 123 | pencil | $1.00 | |
| 124 | pens | $1.50 |
1: <td>
2: <label class="hiddenlabel" for="q1">quantity of pencils</label>
3: <input type="text" id="q1" name="q1" size="3" value="0"></td>
1: <td>
2: <input type="text" name="q1" size="3" value="0" title="quantity of pens"></td>
Slide 30 of 53
Slide 31 of 53
1: <fieldset>
2: <legend>Personal Details</legend>
4: <label for="t6">Title</label>
5: <select name="ddlTitle">
6: <option>Mr</option>
7: <option>Ms</option>
9: </select>
10: <label for="t1"> First Name</label>
11: <input type="text"id="t1" name="txtFirstName">
12: <label for="t2">Middle Name</label>
14: <input type="text"id="t2"cname="txtmiddleName">
15: <label for="t3">Last Name</label>
16: <input type="text" id="t3" name="txtlastName">
17: </fieldset>
Slide 32 of 53
1: <fieldset>
2: <legend>Search This Site</legend>
3: <label for="searchfor">Search for</label>
5: <input id="searchfor" name="searchfor" type="text">
6: <fieldset>
7: <legend>filter by</legend>
8: <input type="radio" id="a" value="1"> <label for="a">television</label>
9: <input type="radio" id="b" value="2"> <label for="b">radio</label>
11: <input type="radio" id="c" value="3"> <label for="c">cinema</label>
12: </fieldset><input type="submit" value="search">
13: </fieldset>
Slide 33 of 53
1: <label for="spin">Spin:</label>
2: <input id="spin" size="3" value="0" maxlength="2">
4: <input id="spinup" type="image" alt="increase value" src="spintop.png">
5: <input id="spindown" type="image" alt="decrease value" src="spinbot.png">
Slide 34 of 53
1: <div id="slide">
2: <input
4: style="background: url(closefocus.gif) #ccc no-repeat 0px 50%; height: 216px"
5: type="image" alt="close panel" src="transparent.gif">
6: </div>
Slide 35 of 53
1: <div class="slider">
2: <input id="thumb" title="effectiveness, between 0 and 500"
3: type="image" alt="effectiveness" src="thumb.gif">
4: <label id="lbl" for="thumb">effectiveness
6: <span id="result">0</span>
7: </label></div>
Slide 36 of 53
1: <li class="firstclosed"><a class="branchnode collapse" href="#">
2: <img alt="collapse folder" src="node.png"></a>
3: <input class="treecheck branchcheck" id="tr1"
5: title="select all children of item1" type="checkbox">
6: <img class="branchicon" alt="opened folder" src="folder.png"> item1
Slide 37 of 53
Slide 38 of 53
Slide 39 of 53
Slide 40 of 53
Slide 41 of 53
Slide 42 of 53
Slide 43 of 53
Slide 44 of 53
Slide 45 of 53
Slide 46 of 53
Slide 47 of 53
Slide 48 of 53
2: <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"
3: xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
4: xmlns:aaa="http://www.w3.org/2005/07/aaa">
Slide 49 of 53
Slide 50 of 53
Slide 51 of 53
Levels can be overridden by the user
Slide 52 of 53
Slide 53 of 53
next (not available)