Difference between revisions of "Template:China Tongji Content"
Line 166: | Line 166: | ||
<!-- ---------------- script --------------- --> | <!-- ---------------- script --------------- --> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | + | //图片轮播控制函数 | |
+ | function picMove(bannerTab,bannerCtrl,bannerPrev,bannerNext){ | ||
+ | var bannerSlider = new Slider(bannerTab, { | ||
+ | time: 3000, | ||
+ | delay: 400, | ||
+ | event: 'hover', | ||
+ | auto: true, | ||
+ | mode: 'fade', | ||
+ | controller: bannerCtrl, | ||
+ | activeControllerCls: 'active' | ||
+ | }); | ||
+ | bannerPrev.click(function() { | ||
+ | bannerSlider.prev() | ||
+ | }); | ||
+ | bannerNext.click(function() { | ||
+ | bannerSlider.next() | ||
+ | }); | ||
+ | } | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 19:08, 4 September 2015