Navigate through a ul with clicks on a div

痞子三分冷 提交于 2020-01-17 01:30:15

问题


Please take a look at this first: This is my JSFiddle to edit

I need to put two div one to the left, one to the right, they will hold arrows (like this ones: imageRight, imageLeft), so when I click on one div left or right, it navigates through the ul accordingly. Please take in consideration that they could be more than two list elements.

Seems easy, but I haven't been able to do it, nor find the right example.


回答1:


ok, now I have the solution...

I end up using a plugin called Awkward Showcase, which is awesome.

In this question you can find how it got it's final configuration to match exactly what I wanted. You can add some comments there if you like.

Solution: JSFiddle



来源:https://stackoverflow.com/questions/21200574/navigate-through-a-ul-with-clicks-on-a-div

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!