0

我希望悬停功能在鼠标悬停在当前我正在使用的 div 上时不断触发,但它只触发一次。它监视鼠标的位置,并说明它是在第 1 节还是在第 2 节。

  $(".rating-image").mouseover(function(e){
        var offset = $(this).offset();
    where=(e.clientX - offset.left);
    if(where<=28){alert('1');}
    if(where>28){alert('2');}
  });
4

1 回答 1

0

使用mousemove会成功!

于 2013-04-04T12:13:42.597 回答