5 |
<style type="text/css"> |
<style type="text/css"> |
6 |
li { |
li { |
7 |
behavior: expression(function (el) { |
behavior: expression(function (el) { |
8 |
el.onmouseover = function () { this.className += ' hover' }; |
el.onmouseover = function () { this.className += ' HOVER' }; |
9 |
el.onmouseout = function () { this.className = this.className.replace (/\\s*hover\\b/g, '') }; |
el.onmouseout = function () { this.className = this.className.replace (/\\s*HOVER\\b/g, '') }; |
10 |
runtimeStyle.bahavior = 'none'; |
runtimeStyle.bahavior = 'none'; |
11 |
} (this)); |
} (this)); |
12 |
} |
} |
13 |
li.hover { |
li:hover, |
14 |
|
li.HOVER { |
15 |
color: red; |
color: red; |
16 |
background-color: white; |
background-color: white; |
17 |
} |
} |