I've tried searching for similar questions and using those responses for my situation, but either I'm doing it wrong (probable...) or it's not exactly what I need?
Essentially, I'm trying to toggle .block-5 when hovering over #b-hover-nav. However, I want .block-5 to stay open so that the user can read / interact with the links in it... The same for the other link in the example...
I've posted in on jsfiddle, (http://jsfiddle.net/9fcFv/) but I'm also including it below:
#content {
width: 400px;
height: 400px;
}
span.button-hover-nav {
display: block;
clear: both;
width: 200px;
margin-bottom: 20px;
}
.left {
width: 200px;
float: left;
}
.block-5 {
display: none;
width: 200px;
float: right;
}
.block-5 a {
color: blue;
}
.block-6 {
display: none;
width: 200px;
float: right;
}
.block-6 a {
color: green;
}
<div class="body">
<span class="button-hover-nav" id="b-hover-nav">Hover Me</span>
</div>
<div class="block-5">
<h1>Please stay open unless I leave...</h1>
<a link="#">Click Me</a>
</div>
//Totally does not work:
// Bind the mouse over /out to the first DIV.
$('#b-hover-nav').live('mouseenter', function() {
$('.block-5').show();
}).live('mouseleave', function() {
t = setTimeOut(function() {
$('.block-5').hide();
}, 100);
});
$('.block-5').live('mouseenter', function() {
if(t) {
clearTimeout(t);
t=null;
}
});