我正在尝试使用 datalist 从列表中获取图像 >>> 和 jQuery 来旋转此图像,但 jQuery 不旋转图像....任何人都可以告诉我我的代码有什么问题
<script type="text/javascript">
var activeNewItem = 0;
        $(function () {
            var totalItems = $("#MyRotator LI").length;
            $("#MyRotator LI").hide();
            $("#MyRotator LI::nth-child(" + ((activeNewItem++ % totalItems) + 1) + ")").show();
            setTimeout('RotateWhatsNew()', 5000); //30000
        });       
</script>
<asp:DataList id="rotator"  bordercolor="Black" cellpadding="2" 
    headerstyle-backcolor="DarkBlue" 
    headerstyle-forecolor="Yellow" repeatcolumns="1"    
    runat="server" Height="179px" Width="168px">  
<HeaderStyle BackColor="DarkBlue" ForeColor="Yellow"></HeaderStyle>
<ItemTemplate>
<div id="MyRotator">
        <ul type="none">
<li style='padding: 3px; list-style: none; width: 200px; word-wrap: break-word; display: none'>
                    <img  Id="Image"   height='90%' width='90%' src='<%=siteurl%>/<%# DataBinder.Eval(Container.DataItem,"ThumbnailOnForm")%>'/> 
             </li>
</ul>
    </div>
</ItemTemplate>
</asp:DataList>