$(function() {
    //生成下部小按钮
    var length = $('#slideshow_photo img').length;
    for (i = 0; i < length; i++) {
        var id = $("#slideshow_photo a").eq(length - (i + 1)).attr('id');
        var alt = $("#slideshow_photo img").eq(length - (i + 1)).attr('alt');
        var div = $('<div id="' + id + '" class="slideshow-bt" index="' + (length - i) + '"><a href="#"> ' + alt + '</a></div>');
        $(div.click(picgroup)).appendTo('#slideshow_footbar');
    }
    $('#slideshow_footbar .slideshow-bt:last').addClass('bt-on');
    $('#slideshow_footbar .slideshow-bt').mouseenter(function(e) {
        slideTo(this);
    });    var indexAllowAutoSlide = true;
    $('#slideshow_footbar').mouseenter(function() {
        indexAllowAutoSlide = false;
    }).mouseleave(function() {
        indexAllowAutoSlide = true;
    });    //滚动
    setInterval(function() {
        if (indexAllowAutoSlide) slideDown();
    },
    3000);});function slideDown() {
    var currentBt = $('#slideshow_footbar .slideshow-bt.bt-on');
    if (currentBt.length <= 0) return;
    var nxt = currentBt.get(0).previousSibling;
    slideTo(nxt ? nxt : $('#slideshow_footbar .slideshow-bt:last').get(0));
}function slideTo(o) {
    if (!o) return;
    var currentIndex = $('#slideshow_footbar .slideshow-bt.bt-on').attr('index'),
    current = $('#slideshow_photo a[index=' + currentIndex + ']');
    var nxt = $('#slideshow_photo a[index=' + $(o).attr('index') + ']');
    if (currentIndex == $(o).attr('index')) return;    if (nxt.find('img[imgsrc]').length > 0) {
        var img = nxt.find('img[imgsrc]');
        img.attr('src', img.attr('imgsrc')).removeAttr('imgsrc');
    }    $('#slideshow_footbar .slideshow-bt.bt-on').removeClass('bt-on');
    $(o).addClass('bt-on');    nxt.css('z-index', 2);    current.css('z-index', 3).fadeOut(500,
    function() {
        $(this).css('z-index', '1').show();
        var img = nxt.next('a').find('img[imgsrc]');
        if (img.length > 0) {
            img.attr('src', img.attr('imgsrc')).removeAttr('imgsrc');
        }
    });};
//slideshow end
  <div class="flash">
<DIV class=long_block_index>
  <DIV class=js_imgs_block>
    <DIV id=slideshow_wrapper>
      <DIV id=slideshow_photo>
    <asp:Repeater runat="server" ID="RptflashEx">
    <ItemTemplate>
<a id="<%# Eval("PicId") %>" style="Z-INDEX:<%# (Container.ItemIndex+1) ==1?2:1 %>;" index="<%# Container.ItemIndex+1 %>"><img class="bg" alt="<%# DataBinder.Eval(Container.DataItem, "PicAlt").ToString() %>" hspace="0" title="<%# DataBinder.Eval(Container.DataItem, "PicTitle").ToString() %>" src="<%# DataBinder.Eval(Container.DataItem, "PicUrl").ToString() %>" /></a>
    </ItemTemplate>
    </asp:Repeater>
    </DIV>
      <DIV id=slideshow_footbar></DIV>
    </DIV>
  </DIV>
</DIV>
<DIV class=survey_block_index>
  <DIV class=title_survey_block_index>
    <UL class=scrollUl>
      <A id=m01 class=sd01 href="javascript:void(0)"></A>
      <A id=m02 class=sd02 href="javascript:void(0)"></A>
      <A style="BACKGROUND-IMAGE: none" id=m03 class=sd03 href="javascript:void(0)"></A>
    </UL>
  </DIV>
</DIV>