Sliding in content on hover over #viewer with .load and sliding away when hovering over #button2 or #button3

I have this jquery :

$(document).ready(function() { $('#display').hover( function () { $('#viewer').load('display.php'); }); });

What I want to happen is, for the content to slide in when hovering over #viewer and I want it to slide away when it hovers over #button1 or #button2 (so basically div#viewer slides away)

-------------Problems Reply------------

something like this should do the trick

$(document).ready(function() {
$('#viewer').height(0);
$('#display').hover(
function () {
$('#viewer').load('display.php');
$('#viewer').animate({height:'100'});
}
);
});

Category:php Views:0 Time:2011-07-26
Tags: php jquery

Related post

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.102 (s). 11 q(s)