Actual code
$(document).ready(function(){
$('li.mainlevel').mousemove(function(){
$(this).find('ul').slideDown();//you can give it a speed
});
$('li.mainlevel').mouseleave(function(){
$(this).find('ul').slideUp("fast");
});
});
To avoid no conflictvar j = jQuery.noConflict(); // define and replace object $ with j
j(document).ready(function(){
j('li.mainlevel').mousemove(function(){
j(this).find('ul').slideDown();//you can give it a speed
});
j('li.mainlevel').mouseleave(function(){
j(this).find('ul').slideUp("fast");
});
});
0 comments:
Post a Comment