我正在尝试创建一个“购物车”链接,当鼠标悬停时,购物车会弹出。我能够让购物车在悬停时打开并在移开时关闭。但是,我无法让购物车块在悬停后保持打开状态。我希望购物车块在悬停时打开并保持打开状态。如果您在此页面右上角悬停在“购物车”链接上,您将明白我的意思。
http://dl.dropbox.com/u/4380589/Rococlothing/index.html
我使用的jQuery是:jQuery('#cart-links .links .first a').mouseover(function(){
jQuery('.block-cart').slideDown(400);
}).mouseout(function(){
jQuery('.block-cart').slideUp(400);
});
jQuery(".block-cart").mouseover(function(){
jQuery(this).show();
}).mouseout(function(){
jQuery(this).fadeOut("slow");
});