Make WordPress Themes

source: kingdom/1.5/js/ie7.js @ 37251

Last change on this file since 37251 was 37251, checked in by themedropbox, 11 years ago

New version of Kingdom - 1.5

File size: 631 bytes
Line 
1(function($){
2        $(document).ready(function(){
3
4                /*fix the situation when the menu is visible from the submenu.*/
5                $('#access').find('div > ul > li').each(function(){
6                        if($(this).children('ul').length > 0){
7                                $(this).css({ 'z-index': '2' });
8                        } else {
9                                $(this).css({ 'z-index': '1' });
10                        }
11                });
12
13                /*fix menu:hover*/
14                $('#access').find('div > ul > li:not(.current-menu-item, .current-menu-ancestor, .current_page_item, .current_page_ancestor) > a:only-child').hover( function() {
15                        $(this).css('background-color', '#2e6eae');
16                }, function() {
17                        $(this).css('background-color', 'transparent');
18                });
19        });
20})(jQuery);
Note: See TracBrowser for help on using the repository browser.