I have the following code:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script>
$(document).ready(function() {
// hides the slickbox as soon as the DOM is ready (a little sooner that page load)
$('#slickbox').hide();
$('#slick-slidetoggle').hover(function() {
$('#slickbox').slideToggle(400);
return false;
});
});
</script>
<style>
#slickbox {
background: #EEE;
border: 1px solid #900;
height: 135px;
}
</style>
</head>
<body>
<a href="#" id="slick-slidetoggle">Slide toggle the box</a>
<div id="slickbox" style="display: block; ">This is the box that will be shown and hidden and toggled at your whim. :)</div>
</body>
</html>
I have also put this in jsfiddle for convenience: http://jsfiddle.net/WFf9X/
I need help in acheiving the following:
I want to be able to rollover the text : Slide toggle the box and that the box should open but I should also be able to move the cursor in the box, without it closing. Only when the cursor leaves the box or text Slide toggle the box, the box should then close after 400ms.
Thanks for the help.