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>
jflow是jquery的一个款图片浏览的插件.很小,但很强大, 但是好像用这个的人不多.所以网上的资料很少.下面我就jflow得到当前图片路径提供一个方法 function getcurrentPath(){ var currentPath=''; var selectIndex=0; var select=$(".jFlowSelected").text();
前提:下载插件<script src="/jflow/resource/js/bootstrap/plugins/validate/jquery.validate.min.js"></script> 1、html代码: <ul id="f_tabsFour" class="nav nav-tabs hide_query"> <li class="active"><a id="quer
在网站前端中使用jQuery库已经变得越来越流行,前端开发人员发布或撰写的相关的插件和教程也与日俱增。 幻灯(通常也被称为“内容滑动”、内容切换效果、焦点图等)是在网站或博客的较小区域展示大量内容的很好的方法。动态的自动滑动内容在很多网站上都是很流行的。你是否也对在自己的网站上实现类似的效果感兴趣?那就看一下本文列出的jQuery插件吧! [b]1. jFlow[/b] [url=http://n