forked from solgenomics/sgn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicon_nav.js
27 lines (24 loc) · 815 Bytes
/
icon_nav.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
JSAN.use('jquery');
jQuery( function() {
var sfEls = document.getElementById("icon_nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className += " sfhover";
}
sfEls[i].onmouseout=function() {
this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
});
// for IE below 8, screw up lots of z-Indexes to work around the
// z-Index bug
if( jQuery.browser.msie && jQuery.browser.version < 8 ) {
jQuery( function() {
var zIndexNumber = 1000;
jQuery('#siteheader div, #icon_nav div, #icon_nav li, #icon_nav ul')
.each( function() {
jQuery(this).css('zIndex', zIndexNumber);
zIndexNumber -= 10;
});
});
}