鼠标悬停时轨道 ZURB jquery 淡入/淡出导航按钮
我正在使用 jQuery 图像滑块插件 - Orbit。我正在尝试在鼠标悬停/鼠标移出时显示/隐藏导航按钮。不知何故,我设法做到了这一点: http://jsfiddle.net/sherlock85/mZYX9/15/ 但是,当您将鼠标光标移到导航按钮上时,它会闪烁并且不会更改幻灯片。
我将不胜感激任何帮助。
I'm using the jQuery image slider plugin - Orbit. I'm trying to show/hide navigation buttons on mouseover/mouseout. Somehow I managed to do so: http://jsfiddle.net/sherlock85/mZYX9/15/ But when you move your mouse cursor over a navigation button it blinks and it doesn't change the slide.
I would appreciate any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用以下代码。您必须为
hover
添加div.slider-nav
:.slider-nav
层位于#featured< /代码>层。当鼠标进入
.slider-nav
并获取属性display:none
时,您将失去焦点到#featured
。之后,焦点再次位于#featured
上,并且属性设置为display:block
。它看起来像快速闪烁,因为每次移动鼠标时都会重复这种情况。Use the following code. You have to add
div.slider-nav
forhover
:The layer of
.slider-nav
is located over the#featured
layer. You will lost the focus to#featured
when the mouse enters.slider-nav
and it get's the propertydisplay:none
. After that the focus is now over#featured
again and the property is set todisplay:block
. It looks like fast blinking because this will be repeated every time you move your mouse.