Hallo,
Ich habe ein Menu erstellt welches wie ein Schachbrett aussieht.
dazu kommt diese Jquery code
Mein Problem ist das das einblenden funktioniert aber das ausblenden nicht.
Was muss ich tun ?
Ich habe ein Menu erstellt welches wie ein Schachbrett aussieht.
HTML:
div id="navwrap">
<div class="container ps_wrap <?php echo $containerPosition ?>">
<div class="row ps_nav">
<div class="inner">
<div class="ps_logo">
<h1>Droege<br>Immobillien</h1>
</div>
<div class="cube home">
<div class="front">
<a href="#" class="easy"><span>01</span> Start</a>
</div>
</div>
<div class="nocube"></div>
<div class="cube profil">
<div class="front">
<p><span>02</span> Profil</p>
<ul>
<li><a href=""><strong>Unternehmen & Kompetentenzen</strong></a></li>
<li><a href="">Referenzen</a></li>
<li><a href="">Dreoege Immobilien Bewerten</a></li>
</ul>
</div>
</div>
<div class="nocube"></div>
<div class="nocube"></div>
<div class="cube leistungen">
<div class="front"><p><span>03</span> Leistungen</p>
<ul>
<li><a href=""><strong>Philsophie</a></li></strong>
<li><a href="">Etw-Verkauf & Vermietung</a></li>
<li><a href="">Entwicklungs-Geschäft</a></li>
</ul>
</div>
</div>
<div class="nocube"></div>
<div class="cube angebot">
<div class="front"><p><span>04</span> Angebot</p>
<ul>
<li><a href=""><strong>Kurzübersicht</a></li></strong>
<li><a href="">Mieten</a></li>
<li><a href="">Kaufen</a></li>
<li><a href="">Vormerken</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="cube service">
<div class="front"><p><span>04</span> Service</p>
<ul>
<li><a href=""><strong>Immotrends</a></li></strong>
<li><a href="">Tipp & Lohn</a></li>
<li><a href="">Download</a></li>
<li><a href="">Gloassar</a></li>
</ul>
</div>
</div>
<div class="nocube"></div>
<div class="cube kontakt">
<div class="front">
<a href="" class="easy"><span>06</span> Kontakt</a>
</div>
</div>
<div class="nocube"></div>
Code:
.ps_nav{width: 960px;height: 482px;}
.ps_wrap{background: url(../images/menu/header_bg.jpg) no-repeat;margin: 0 auto;height: 482px;border: none;float: none;}
.ps_logo{float: left;background: #adb319 url(../images/logo.png) no-repeat 15px 15px; width: 320px; height: 318px;border: 0;-moz-opacity: 0.90;-webkit-opacity: 0.90;-khtml-opacity: 0.90;opacity: 0.90;filter:alpha(opacity=90);}
.ps_logo h1{text-transform: uppercase; margin: 240px 0 0 15px; color:#fff;font-weight: normal; letter-spacing: 0;}
a{text-decoration:none;text-transform: uppercase;color: #000!important;}
.cube{float:left;width: 158px; height: 158px;color: white;position: relative;}
.cube p{margin: 0;padding:100px 0 0 15px;text-transform: uppercase;position: relative;z-index: 200;}
.cube p span,.cube a.easy span {font-size: 300%;}
.cube a.easy{position: relative;top:100px;padding: 0 0 0 15px;color:#fff!important;}
.cube .front{float:left;width: 158px;height: 158px;background: #adb319;-moz-opacity: 0.75;-khtml-opacity: 0.75;opacity: 0.75;filter:alpha(opacity=75);}
.front ul{margin:0;padding:50px 0 0 18px;list-style: none;width: 142px; height: 109px;background: #f7fafa;position:relative;}
.bg{margin:0;display: block;width: 158px; height: 159px;background: #f7fafa;position:relative;top: 160px;}
.bg:hover a{color: #000!important;}
.front a:hover{font-weight: bold;}
.nocube{float:left;width: 160px; height: 160px;}
.home{margin-left:1px;}
.profil{float:left;padding-left: 1px;}
.leistungen{margin-top: -0.8px;padding: 0.2px 1px 0.5px 0;}
.angebot{margin: -1px 0 0 1px;padding: 0 2px 0.5px 0;}
.service{margin: -1px 0 0 -2px;;padding: 0 2px 1px 2px;}
.kontakt{margin: -1px 0 0 1px;padding: 0 0 1px;float:left;width: 158px; height: 158px;}
.home:hover,.kontakt:hover{text-decoration: none;}
dazu kommt diese Jquery code
Code:
jQuery(document).ready(function(){
var front = jQuery('.front');
front.children('ul').hide();
front.mouseover(function() {
jQuery(this).children("p").css("color","#000").animate( {"top": "-100px"}, 750, "swing");
jQuery(this).children("ul").show().animate( {"top": "-154px"}, 750, "swing")
,function() {
var time = 50;
var fade_out_function = function() {
jQuery(this).children("p").css("color","#fff").animate({"top": "100px"}, 750, "swing",function(){
jQuery(this).children('ul:visible').animate( {"top": "0px"}, 750, "swing").hide();
});
}
var timeout = window.setTimeout(fade_out_function, time);
front.mouseover(function(){
window.clearTimeout(timeout);
},
function() {
timeout = window.setTimeout(fade_out_function, time);
});
};
});
front.hover(function() {
jQuery(this).children("a.easy").wrapAll('<span class="bg"></span');
jQuery(this).children(".bg").animate( {"top": "0px"}, 750, "swing");
jQuery(".bg").children("a.easy").css("color","#000").animate({"top": "0px"}, 750, "swing");
});
});
Mein Problem ist das das einblenden funktioniert aber das ausblenden nicht.
Was muss ich tun ?