jQuery SlidesJS 键盘导航
My site uses SlidesJS for a photo slideshow.
My question is, how can I use keyboard navigation?
I've added this GitHub solution to my head tag (lines 94-116) but the keyboard's left & right arrow keys still aren't working.
How can I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在 SlidesJS 网站上时将以下代码输入到 chrome 的控制台窗口中,并且它有效...
进行了编辑以与通常不使用 $ for jQuery 的页面兼容。
I input the following code into the console window on chrome when on the SlidesJS site and it worked...
Edited for compatibility with pages that don't normally use $ for jQuery.
您可以将 keyup 事件绑定到窗口上下文,并根据
event.keyCode
触发下一个和上一个按钮上的单击事件,其中应该有一些代码可以更改拇指,但这是基本功能我的头顶。
You can bind the keyup events to the window context and fire the click event on the next and prev buttons based on
event.keyCode
There should be some code in there to change the thumbs but that's the basic functionality off the top of my head.