Merge pull request #5205 from solgenomics/topic/generic_trial_upload
[sgn.git] / js / source / legacy / icon_nav.js
blob8186772f29cd3b6a4e451723e8055ee87a8e3efa
1 JSAN.use('jquery');
3 jQuery( function() {
4         var sfEls = document.getElementById("icon_nav").getElementsByTagName("LI");
5         for (var i=0; i<sfEls.length; i++) {
6                 sfEls[i].onmouseover=function() {
7                         this.className += " sfhover";
8                 }
9                 sfEls[i].onmouseout=function() {
10                         this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
11                 }
12         }
13 });
15 // for IE below 8, screw up lots of z-Indexes to work around the
16 // z-Index bug
17 //if( jQuery.browser.msie && jQuery.browser.version < 8 ) {
18 //  jQuery( function() {
19 //            var zIndexNumber = 1000;
20 //            jQuery('#siteheader div, #icon_nav div, #icon_nav li, #icon_nav ul')
21 //              .each( function() {
22 //                       jQuery(this).css('zIndex', zIndexNumber);
23 //                       zIndexNumber -= 10;
24 //                     });
25 //          });
27 //}