jQuery jFlow

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-13 12:44:17

软件介绍

jFlow is a widget to make your content slides. One popular alternative that exists out there is coda-slider. jFlow is super lightweight because it is only 1.9kb minified!!!.

$("#myController").jFlow({
    slides: "#mySlides",
    width: "99%",
    height: "200px",
    duration: 400
});

Explanation:

#myController: the div where all the slide controller are nested in
slides:  the div where all your sliding divs are nested in (note: you can define classes for each div inside slides)
width: can be specified in px or % (required)
height: can be specified in px (required)
duration: time in miliseconds to transition one slide (optional, default is 400)

2 divs created by jFlow as containers, you can style them to your liking

#jFlowSlide: This is the container where all the slides reside
.jFlowSelected: This is the current activated controller


Special div definition

.jFlowPrev: Any element with this class will transition to previous slide upon clicking
.jFlowNext: Any element with this class will transition to next slide upon clicking
.jFlowControl: Any element inside the controlling div with this class will map to the corresponding slide

Example

<script language="javascript">
$(document).ready(function(){
    $("#myController").jFlow({
        slides: "#mySlides",
        width: "99%",
        height: "200px",
        duration: 400
    });
});
</script>

<div id="myController">
   <span class="jFlowControl">No 1 </span>
   <span class="jFlowControl">No 2 </span>
   <span class="jFlowControl">No 3 </span>
   <span class="jFlowControl">No 4 </span>
</div>

<div id="mySlides">
   <div>First Slide</div>
   <div>Second Slide </div>
   <div>Third Slide </div>
   <div>Fourth Slide </div>
</div>

<span class="jFlowPrev">Prev</span>
<span class="jFlowNext">Next</span>

本文地址:https://codercto.com/soft/d/23287.html

与孩子一起学编程

与孩子一起学编程

[美] 桑德Warren Sande、Carter Sande / 苏金国、姚曜 等 / 人民邮电出版社 / 2010-11 / 65.00元

一本老少咸宜的编程入门奇书!一册在手,你完全可以带着自己的孩子,跟随Sande父子组合在轻松的氛围中熟悉那些编程概念,如内存、循环、输入和输出、数据结构和图形用户界面等。这些知识一点儿也不高深,听起来备感亲切,书中言语幽默风趣而不失真义,让学习过程充满乐趣。细心的作者还配上了孩子们都喜欢的可爱漫画和经过运行测试的程序示例,教你用最易编写和最易理解的Python语言,写出你梦想中的游戏程序。 ......一起来看看 《与孩子一起学编程》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具