0

我正在尝试将下面的代码移植到 mootools 1.1 代码,但没有运气

jQuery(document).ready(
function(){
    jQuery("div#fpss-nav_activator").bind("mouseenter",function(){
    jQuery("div#navi-outer").stop(true, true).show("slow");
    }).bind("mouseleave",function(){
    jQuery("div#navi-outer").stop(true, true).hide("slow");
    });
});
4

1 回答 1

1

干得好:

window.addReady('domready', function() {
  var navi = $("navi-outer");
  $("fpss-nav_activator").addEvent('mouseenter', function() {
    navi.slide('in');
  }).addEvent('mouseleave', function() {
    navi.slide('out');
  });
});
于 2010-04-08T03:56:49.817 回答