﻿    var bottomInfo = $("#tbbottomInfo").val();
    var SetBottomChangeTime = 20000;

    var bottomInfoList = new Array();
    bottomInfoList = bottomInfo.toString().split('&');
    var isFirst = true;
    
    function IsPostBackLoad() {
        
        if (isFirst) {
//        alert("aa");
            isFirst = false;
//            alert(bottomInfoList[0]);
            $("#spAdvister").html(bottomInfoList[0]);
            
        }
    }

    var i = 1;
    var showed = function() {
        setTimeout(
        function() {
            if (isFirst) {//如果是第一次加载,需要特别处理
//                $("#spAdvister").html(bottomInfoList[0]);
//                isFirst = false;

                if (i == bottomInfoList.length + 1) {
                    i = 0;
                }
            }
            else {
                if (i == bottomInfoList.length) {
                    i = 0;
                }
            }

            $("#spAdvister").html(bottomInfoList[i]);
            
            i++;
            showed();
        }, SetBottomChangeTime);
    }


$(document).ready(function() 
{
    IsPostBackLoad();
    showed();
});

