progressbar带动画效果的统计小插件

progressbar带动画效果的统计小插件

progressbar演示了一款简单的柱状图统计DEMO,它支持自定义统计项背景颜色、进度百分比(设置宽度)等,jQuery经典水平柱状图

淘建站为您提供更多_其它特效_统计图_统计图_投票,在此特别感谢您对我们的支持与厚爱!

查看演示

演示不了,点击反馈

加入收藏

下载 77 次

下载资源

34 积分

特别说明:本站资源来自网友发布分享,仅供学习与参考,请勿用于商业用途,若有侵权请联系删除(272966172@qq.com)。
分类:统计图 > 柱状图 难易程度:中级

投票选项列表

<dl class="barbox">
    <dt><a href="http://www.sucaiq.com/js">jquery 特效</a></dt>
    <dd class="barline">
        <div divindex="0" id="chartSlide_0" w="70" style="width:0px;" class="charts"></div>
    </dd>
    <dd class="last">70%</dd>
</dl>
<dl class="barbox">
    <dt><a href="http://www.sucaiq.com/templates">网站模板</a></dt>
    <dd class="barline">
        <div divindex="1" id="chartSlide_1" w="50" style="width:0px;" class="charts"></div>
    </dd>
    <dd class="last">50%</dd>
</dl>
function animate() {
    var max = "barred";
    var middle = "baryellow";
    var min = "barblue";

    var maxValue = 0;
    var minValue = 0;

    var maxIndex = 0;
    var minIndex = 0;

    $(".charts").each(function(i, item) {
        var a = parseInt($(item).attr("w"));

        if (i == 0) {
            minValue = a;
            minIndex = i;
        }
        if (a > maxValue) {
            maxValue = a;
            maxIndex = i;
        } else if (a < minValue) {
            minValue = a;
            minIndex = i;
        }
    });

    $(".charts").each(function(i, item) {
        var addStyle = "";
        var divindex = parseInt($(item).attr("divindex"));
        if (divindex == maxIndex) {
            addStyle = max;
        } else if (divindex == minIndex) {
            addStyle = min;
        } else {
            addStyle = middle;
        }

        $(item).addClass(addStyle);
        var a = $(item).attr("w");
        $(item).animate({
            width: a + "%"
        }, 1000);
    });
}
animate();

声明:本资料由淘建站会员提供,如转载注明来源,资料来源淘建站免费素材库:https://www.taojz.cn/texiao/774.html
progressbar带动画效果的统计小插件 希望对你有帮助,感谢您的支持!
  • Open Flash Chart图表插件

    Open Flash Chart图表插件

  • Highcharts折线图

    Highcharts折线图

  • PHP+jQuery+Ajax+Mysql实现文章心情投票功能

    PHP+jQuery+Ajax+Mysql实现文章心情投票功能

  • jQuery+circliful圆形百分比统计图

    jQuery+circliful圆形百分比统计图

  • Highcharts+PHP+Mysql生成饼状统计图

    Highcharts+PHP+Mysql生成饼状统计图

  • progressbar带百分比提示的进度条插件

    progressbar带百分比提示的进度条插件

  • 纯css3 3D柱状图动画特效

    纯css3 3D柱状图动画特效

  • 卡通的数字百分比flash进度条动画素材

    卡通的数字百分比flash进度条动画素材

  • 新年手机投票活动页面wap微信模板下载

    新年手机投票活动页面wap微信模板下载

  • 圆形统计图

    圆形统计图

  • 旋转圆形按钮显示百分比进度条

    旋转圆形按钮显示百分比进度条

  • jquery进度条投票打分插件多个带动画进度条投票打分

    jquery进度条投票打分插件多个带动画进度条投票打分

  • 留言(0)
    头像
     阿里云限量代金券,戳我领取
    1 2