I have got a drop down menu which works fine but i want to add some jquery effects like animation , slideup, down ,
currently i m using visiblity hidden & visible to show the ul , how can i use other effect on it , below is the code :
<script type="text/javascript">
$(document).ready(function () {
$('.ul-links > li').bind('mouseover', openSubMenu);
$('.ul-links > li').bind('mouseout', closeSubMenu);
function openSubMenu() {
$(this).find('ul').css('visibility', 'visible');
};
function closeSubMenu() {
$(this).find('ul').css('visibility', 'hidden');
}; });
</script>
I tried using :$('ul', this).slideDown(100); $('ul', this).slideUp(100);
with no success
css:
.quiklinks .ul-links li ul
{
position:absolute;
visibility: hidden;
margin: 0px;
padding-top:0px;
z-index: 1000;
top: 42px;
left:0px;
}
Any help will be highly appreciated