Hello,
Right, so I've got a menu that also has several submenus it, for instance, an unordered list in a list item (ul li ul). I want it to slide to the right when I hover it. So far I came up with this:
PHP Code:
<script type="text/javascript"> $(document).ready(function() { $('ul.rMenu li ul').hover(function() { var $lefty = $(this).next(); $lefty.animate({ left: parseInt($lefty.css('left'),30) == 0 ? -$lefty.outerWidth() : 0 }); }); }); </script>
However, this messes up the entire animation. I want it to nicely "appear" as it slides to the right--just like slide up would do to let's say, a login form.
Any idea how I would do this?
Check my site to see what I mean: http://www*solidscan*nl.
Cheers.
__________________
$gocore = new gakoyucore();
$con = mysql_connect($gocore->server, $gocore->username, $gocore->password) or die(mysql_error());
|