【问题标题】:How to stop scrolling on mouseover如何在鼠标悬停时停止滚动
【发布时间】:2013-11-24 05:46:15
【问题描述】:

查看我的项目灵感:http://www.myprovence.fr/snapshots2012/en/marseille-provence/0-carte.html 我正在为我的项目设计相同的滚动,并使用完全相同的 html 结构和 jquery 插件。但作为一个例外,当用户将鼠标悬停在白色尖端/矩形气泡上时,我想暂停滚动。有什么建议,如何在悬停时停止滚动?

【问题讨论】:

  • 嗨 Tushar,我已经完成了我在我的网站上提到的所有内容。它做得很好,但我想要鼠标悬停时的额外功能。

标签: jquery html jquery-ui css jquery-plugins


【解决方案1】:
$(".spot").hover(function(){

_unactiveAutoRotation();

},function(){

var direction=domElmts.$nav.$navNext.attr('data-map-direction');
direction=domElmts.$navPrev.attr('data-map-direction');
_moveToDirection(direction);



});

试试上面的代码。

【讨论】:

  • 不,它不起作用..这就是我实现 $(".spot").hover(function(){ _unactiveAutoRotation(); },function(){ var direction=domElmts.$ 的方式nav.$navNext.attr('data-map-direction'); direction=domElmts.$navPrev.attr('data-map-direction'); _moveToDirection(direction); });
猜你喜欢
  • 1970-01-01
  • 2012-05-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-03-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多