http://test.yinlimedia.com/tvc.aspx视频上的左右箭头如何实现
我中间绑定图片的是绑定控件datalist,我只查询出了前5条信息~~
不知道如何点击箭头时候更换到下5条??
请帮忙???

解决方案 »

  1.   

     
    我想用js不想来回的操作数据库
    <script type="text/javascript" src="/JS/jquery.pack.js"></script>    <script type="text/javascript" src="/JS/jquery.scrollTo-min.js"></script>    <script type="text/javascript">
    function next(){
    $('#featuredContent').scrollTo( '+=191px', {speed:800,axis:'x'});
    return false;
    };
    function prev(){
    $('#featuredContent').scrollTo( '-=191px', {speed:800,axis:'x'});
    return false;
    };
        </script>
     <div class="n_contvideo" id="featuredContent" style="height: 116px; width: 597px;
                                overflow-x: hidden; overflow: hidden; ovefrlow-y: hidden; position: relative;
                                padding-top: 5px; left: 0px; top: 0px;">
                                <div id="featuredDisplayDiv" style="width: 1368px; overflow-x: hidden; overflow: hidden;
                                    overflow-y: hidden; position: relative; left: 0px; top: -7px; height: 120px;">
                                    <asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal">
                                        <ItemTemplate>
                                            <a href='TVC.aspx?Vid=<%#Eval("Vid") %>'>
                                                <img alt="" src='<%#Eval("Pic") %>' width="100px" height="100px" /></a>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </div>
                            </div>
    这是我的js
    但是有点问题
    请用过的帮忙下??
      

  2.   

    既然用jquery了,再找个jquery的插件太容易了,比如这个:http://sorgalla.com/projects/jcarousel/#Examples最简单的示例: http://sorgalla.com/projects/jcarousel/examples/static_simple.html
      

  3.   


    引用的不就只有一个jquery.js吗?在这里:http://www.jquery.com