Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何向似乎没有选项的插件添加自动播放功能?我正在尝试使用自动播放的那个叫做 windy:http ://tympanus.net/Development/Windy/index.html
<script type="text/javascript"> $(function() { var $el = $( '#wi-el' ), windy = $el.windy(); var curSlide = 0; setInterval(function(){ if(curSlide == windy.getItemsCount() - 1){ windy.navigate(0); } else{ windy.next(); } curSlide++; }, 2000 ); }); </script>