jQuery预约进度条简单实用

所属分类:UI,其他-加载,杂项

 14623  200  查看评论 (0)
分享到微信朋友圈
X
jQuery预约进度条简单实用 ie兼容7

更新时间:2019-12-15 22:48:18

使用方法

需要调用3个外部文件,它们分别是jquery.step.css,jquery-1.10.2.js,jquery.step.min.js

<link rel="stylesheet" type="text/css" href="css/jquery.step.css" />
<script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script src="js/jquery.step.min.js"></script>

html

<div class="main">
	<div id="step"></div>
	<div class="btns">
		<button id="prevBtn">上一步</button>
		<button id="nextBtn">下一步</button>
		<button id="btn1">跳到第二步</button>
		<button id="btn2">跳到第三步</button>
	</div>
	<div class="info">index:<span id="index"></span></div>
</div>

js

var step1 = $("#step");
var index1 = $("#index");

step1.step({
    index1: 0,
    time: 500,
    title: ["填写申请表", "上传资料", "待确认", "已确认", "预约完成"]
});

index1.text(step1.getIndex());

$("#prevBtn").on("click", function() {
    step1.prevStep();
    index1.text(step1.getIndex());
});

$("#nextBtn").on("click", function() {
    step1.nextStep();
    index1.text(step1.getIndex());
});

$("#btn1").on("click", function() {
    step1.toStep(1);
    index1.text(step1.getIndex());
});

$("#btn2").on("click", function() {
    step1.toStep(2);
    index1.text(step1.getIndex());
});
相关插件-加载,杂项

jQuery横向及纵向进度条插件

jQuery横向及纵向进度条插件,可控制速度,可设为递增递减进度,可繁可简,颜色尺寸随心所欲!简单使用,使用方法一应俱全。
  加载
 32064  326

jquery实现图片预加载

jquery实现图片预加载
  加载
 49222  446

jquery.Loading

8种fakeloader页面加载效果代码,支持7种效果和自定义图片,兼容主流浏览器!
  加载
 66939  436

纯css3制作绿色loading加载动画特效

纯css3制作绿色loading加载动画特效里面包含14款不同效果的绿色清新loading加载特效。
  加载
 55490  553

讨论这个项目(0)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复