Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: dominion-fertility/style.css
- ===================================================================
- --- dominion-fertility/style.css
- +++ dominion-fertility/style.css
- @@ -64,27 +64,32 @@
- .top-nav ul { list-style-type: none; float: right; display: inline; }
- .top-nav ul li { float: left; display: inline; background: url(images/top-nav-li.jpg) no-repeat 0 0 ; padding: 0 7px 0 10px; }
- .top-nav ul li a { color: #75a3da; text-decoration: none; }
- .top-nav ul li.first { background: transparent; }
- -#navigation { height: 49px; background: url(images/nav.png) no-repeat 0 0 ; font-size: 13px; position: relative ; }
- +#navigation { height: 49px; background: url(images/nav.png) no-repeat 0 0 ; font-size: 13px; position: relative; z-index: 15; }
- #navigation ul { list-style-type: none; }
- -#navigation ul li { float: left; display: inline; line-height: 44px; padding-left: 2px; background: url(images/nav-li.jpg) no-repeat left 0 ; }
- +#navigation ul li { float: left; display: inline; line-height: 44px; padding-left: 2px; background: url(images/nav-li.jpg) no-repeat left 0; position: relative; z-index: 16; }
- #navigation ul li.first { padding: 0; background: transparent; }
- #navigation ul li a { float: left; display: inline; padding: 1px 9px; text-decoration: none; color: #fff; }
- #navigation ul li a:hover,
- #navigation ul li.current-menu-item a,
- #navigation ul li.hover a { padding: 0px 8px 0px 8px; border: 1px solid #3f6496; text-decoration: none; background: url(images/nav-a.jpg) ; }
- #navigation ul li:hover a { padding: 0px 8px 0px 8px; border: 1px solid #3f6496; text-decoration: none; background: url(images/nav-a.jpg) ; }
- #navigation .tl { background: url(images/nav-left.png) no-repeat 0 0 ; display: block; width: 3px; height: 3px; position: absolute ; top: 0; left: 0; }
- #navigation .tr { background: url(images/nav-right.png) no-repeat 0 0 ; display: block; width: 3px; height: 3px; position: absolute ; top: 0; right: 0; }
- -#navigation ul ul.sub-menu { visibility: hidden; position: absolute; top: 45px; z-index: 20; background: #355682; }
- +#navigation ul ul.sub-menu { visibility: hidden; position: absolute; top: 45px; left: 0; z-index: 20; background: #355682; }
- #navigation ul li.hover ul.sub-menu { visibility: visible; }
- #navigation ul li:hover ul.sub-menu { visibility: visible; }
- -#navigation ul ul.sub-menu li { display: block; float: left; clear: left; background: none; width: 100%; }
- -#navigation ul ul.sub-menu li a { background: none; border: none; width: 100%; }
- +#navigation ul ul.sub-menu li { display: block; float: left; clear: left; background: none; position: relative; }
- +#navigation ul ul.sub-menu li a { background: none; border: none; display: block; }
- +
- +#navigation ul ul.sub-menu ul.sub-menu { visibility: hidden; left: 100%; top: 0; margin-left: -2px; }
- +#navigation ul ul.sub-menu li:hover ul.sub-menu { visibility: visible; }
- +#navigation ul ul.sub-menu li.hover ul.sub-menu { visibility: visible; }
- +#navigation ul ul.sub-menu ul.sub-menu li a { white-space: nowrap; }
- .slider { width: 920px; height: 416px; position: relative ; border-top: 1px solid #bebebe; background: url(images/slider.png) no-repeat bottom center ; padding-bottom: 40px; z-index: 10; }
- .slider-carousel,
- .slider-carousel .jcarousel-clip,
- .slider-carousel ul,
- Index: dominion-fertility/js/jquery-func.js
- ===================================================================
- --- dominion-fertility/js/jquery-func.js
- +++ dominion-fertility/js/jquery-func.js
- @@ -32,11 +32,11 @@
- (function() {
- var nav = $('#navigation');
- var ul = nav.find('> ul');
- var lis = ul.find('> li');
- - setTimeout(function() {
- + $(window).load(function() {
- var liWidth = 0;
- lis.each(function() {
- liWidth += $(this).outerWidth(true);
- $(this).hover(function() {
- $(this).addClass('hover');
- @@ -44,11 +44,41 @@
- $(this).removeClass('hover');
- });
- });
- nav.css('padding-left', (nav.width() - liWidth)/2 + 'px');
- - }, 100);
- +
- + var ul2 = lis.find('> ul');
- + ul2.each(function() {
- + var lis2 = $(this).find('> li');
- + var li2Width = 0;
- +
- + lis2.each(function() {
- + if (li2Width < $(this).width()) li2Width = $(this).width();
- +
- + var ul3 = $(this).find('> ul');
- + var lis3 = ul3.find('> li');
- + var li3Width = 0;
- + lis3.each(function() {
- + if (li3Width < $(this).width()) li3Width = $(this).width();
- + });
- + lis3.find('> a').width(li3Width);
- + lis3.width(li3Width);
- + ul3.width(li3Width);
- +
- + $(this).hover(function() {
- + $(this).addClass('hover');
- + }, function() {
- + $(this).removeClass('hover');
- + });
- + });
- +
- + lis2.find('> a').width(li2Width + 48);
- + lis2.width(li2Width + 48);
- + ul2.width(li2Width + 48);
- + });
- + });
- })();
- $('.slider-carousel ul').jcarousel({
- 'scroll' : 1,
- 'auto': 5,
- Index: dominion-fertility/header.php
- ===================================================================
- --- dominion-fertility/header.php
- +++ dominion-fertility/header.php
- @@ -36,19 +36,19 @@
- </script>
- <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript" ></script>
- </div>
- <div class="cl"> </div>
- - <?php wp_nav_menu(array('menu'=>'header-menu', 'container'=>'div', 'container_class'=>'top-nav', 'theme_location'=>'header-menu-location', 'fallback_cb'=>'', 'depth'=>2)); ?>
- + <?php wp_nav_menu(array('menu'=>'header-menu', 'container'=>'div', 'container_class'=>'top-nav', 'theme_location'=>'header-menu-location', 'fallback_cb'=>'', 'depth'=>3)); ?>
- </div>
- <div class="cl"> </div>
- </div>
- <!-- Header -->
- <!-- Navigation -->
- <div id="navigation">
- - <?php wp_nav_menu(array('menu'=>'navigation-menu', 'container'=>false, 'theme_location'=>'navigation-menu-location', 'fallback_cb'=>'', 'depth'=>2)); ?>
- + <?php wp_nav_menu(array('menu'=>'navigation-menu', 'container'=>false, 'theme_location'=>'navigation-menu-location', 'fallback_cb'=>'', 'depth'=>3)); ?>
- <div class="cl"> </div>
- <span class="tl notext" > </span>
- <span class="tr notext" > </span>
- </div>
- <!-- END Navigation -->
Add Comment
Please, Sign In to add comment