如何修复 jQuery 图像手风琴滑块?
我的网站有一个问题。它使用基于 jquery 的折叠式图像滑块。当您进入网站时,第一个图像完全打开,而其他图像则滑动到右侧。好的,之后您可以将鼠标悬停在任何图像上并一张一张地滑动它们。如果您收起鼠标,手风琴滑块不会返回到其第一个状态。它向您显示缩略图,但我希望它位于您刚进入网站时的第一个位置...我如何修复第一个图像的位置,以便如果您滑动图像,然后收起鼠标,第一张图像回到之前的状态?!
这是网站:http://sunwind.lv
提前致谢!
I have one problem with my website. It uses accordion image slider, which is based on jquery. When you enter the website, first images opens fully, while the other images slide to the right side. OK, after that you can hover on any image and slide them, one by one. And if you put away the mouse, the accordion slider doesnt go back to its first state. It shows you thumbnails, but i want it to be where it was in first place, when you just entered the website... How do i fix this position of first image, so that if you slide thru the images, and then put away the mouse, first image goes back to its previous state?!
Here is the website: http://sunwind.lv
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“默认”状态在
setInitialPosition
中设置,该状态在root.mouseleave
中调用(当鼠标离开滑块时触发)。我得到了这个工作,因为(我希望:)您只需将代码更改为在这种情况下调用showSelected
即可。The 'default' state is set in
setInitialPosition
, which is called inroot.mouseleave
(triggered when the mouse leaves the slider). I got this working as (I hope :) you want it just by changing the code to callshowSelected
instead in that case.