PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/uuQuery.js/demo/plus/odd.htm

http://uupaa-js-spinoff.googlecode.com/
HTML | 34 lines | 34 code | 0 blank | 0 comment | 0 complexity | bdf93c938de46039add9fedbb94b4e5f MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 2  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
 4<head>
 5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 6<title>uuQuery.js uuQuery(odd) - test</title>
 7<script type="text/javascript" src="../../uuQuery.js"></script>
 8<script type="text/javascript" src="../iterator.js"></script>
 9  <style>
10  table { background:#f3f7f5; }
11  </style>
12</head>
13<body>
14<hr />
15  <table border="1">
16    <tr><td>Row with Index #0</td></tr>
17    <tr><td>Row with Index #1</td></tr>
18    <tr><td>Row with Index #2</td></tr>
19    <tr><td>Row with Index #3</td></tr>
20  </table>
21<script>
22function boot() {
23  uuQuery("tr:odd").forEach(function(v) {
24    v.style.backgroundColor = "#bbbbff";
25  });
26}
27</script>
28<pre>
29  uuQuery("tr:odd").forEach(function(v) {
30    v.style.backgroundColor = "#bbbbff";
31  });
32</pre>
33</body>
34</html>