/[suikacvs]/www/test/css/trident/expression/pseudo-hover.html
Suika

Contents of /www/test/css/trident/expression/pseudo-hover.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Tue May 24 01:34:29 2005 UTC (20 years, 1 month ago) by wakaba
Branch: MAIN
File MIME type: text/html
New

1 <html xmlns="http://www.w3.org/1999/xhtml"
2 lang="en" xml:lang="en">
3 <head>
4 <title>Pseudo Pseudo Class “hover” for WinIE</title>
5 <style type="text/css">
6 li {
7 behavior: expression(function (el) {
8 el.onmouseover = function () { this.className += ' hover' };
9 el.onmouseout = function () { this.className = this.className.replace (/\\s*hover\\b/g, '') };
10 runtimeStyle.bahavior = 'none';
11 } (this));
12 }
13 li.hover {
14 color: red;
15 background-color: white;
16 }
17 </style>
18 </head>
19 <body>
20 <h1>Pseudo Pseudo Class “hover”</h1>
21
22 <div class="section" id="EXAMPLE">
23 <h2>Test</h2>
24
25 <ul>
26 <li>List item 1</li>
27 <li>List item 2</li>
28 <li>List item 3</li>
29 <li>List item 4</li>
30 </ul>
31 </div>
32
33 <div class="section" id="STYLE">
34 <h2>Style Sheet Fragment</h2>
35
36 <pre><code class="CSS">
37 li {
38 behavior: expression(function (el) {
39 el.onmouseover = function () { this.className += ' <em>HOVER</em>' };
40 el.onmouseout = function () { this.className = this.className.replace (/\\s*<em>HOVER</em>\\b/g, '') };
41 runtimeStyle.bahavior = 'none';
42 } (this));
43 }
44 li:hover <code class="comment">/* For CSS compliant user agents */</code>,
45 li.<em>HOVER</em> <code class="comment">/* For WinIE */</code> {
46 color: red;
47 background-color: white;
48 }</code></pre>
49
50 </div>
51
52 </body>
53 </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24