Click here to Skip to main content
15,123,923 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends, here i want to rotate the column named "Description" in SPlist where if i am trying with the image URL i am getting it. but while i am trying the same with label i am rotating only Div can any one help on this please and my need is that i want to slide Description column in SPList please suggest me

XML
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <script type="text/javascript" language="javascript">
            window.onload = function () {
                var rotator = document.getElementById("rotator");
                var images = rotator.getElementsByTagName("img");
                for (var i = 1; i < images.length; i++) {
                    images[i].style.display = "none";
                } var counter = 1; setInterval(function () {
                    for (var i = 0; i < images.length; i++) {
                        images[i].style.display = "none";
                    }
                    images[counter].style.display = "block";
                    counter++;
                    if (counter == images.length) { counter = 0; }
                }, 1000);
            };


        </script>

    </head>
    <body>
        <form id="form1">
             <div id="rotator">
                 <asp:Repeater ID="repAnnouncements" runat="server"
    onitemcommand="repAnnouncements_ItemCommand">
        <ItemTemplate>
        <table>
            <tr>
              <td>

             <asp:Image ID="imgLink" ImageUrl='<%# Eval("Picture") %>' runat="server" Width="100px" Height="100px"/>
       </td>
            </tr>
        </table>
        </ItemTemplate>
        </asp:Repeater>



             </div>

        </form>

    </body>

</html>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900