分享一款基于jQuery滑动分步式进度导航条代码。这是一款基于jquery实现的网站注册动态步骤导航条代码。效果图如下:
实现的代码。
html代码:
<div id="stepBar" class="ui-stepBar-wrap">
<div class="ui-stepBar">
<div class="ui-stepProcess"></div>
</div>
<div class="ui-stepInfo-wrap">
<table class="ui-stepLayout" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="ui-stepInfo">
<a class="ui-stepSequence">1</a>
<p class="ui-stepName">注册</p>
</td>
<td class="ui-stepInfo">
<a class="ui-stepSequence">2</a>
<p class="ui-stepName">填写验证信息</p>
</td>
<td class="ui-stepInfo">
<a class="ui-stepSequence">3</a>
<p class="ui-stepName">填写基本信息</p>
</td>
<td class="ui-stepInfo">
<a class="ui-stepSequence">4</a>
<p class="ui-stepName">填写安全信息</p>
</td>
<td class="ui-stepInfo">
<a class="ui-stepSequence">5</a>
<p class="ui-stepName">激活账户</p>
</td>
<td class="ui-stepInfo">
<a class="ui-stepSequence">6</a>
<p class="ui-stepName">完成注册</p>
</td>
</tr>
</table>
</div>
</div> <script type="text/javascript" src="js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/stepBar.js"></script>
<script type="text/javascript">
$(function(){ stepBar.init("stepBar", {
step : 4,
change : true,
animation : true
}); });
</script>