• 图片轮播 向左和向右


    Jquery做的 ,比起JS要简洁多了

    left=$(".left");
        right=$(".right");
        da=$(".da");
        
        c=1;
        
        left.click(function() {
            if(c != 5) {
                da.stop();
                da.animate(
                    {
                        marginLeft: c * (-620) + "px"
                    },
                    1000,
                    function() {
                        c++;
                })
            }
        })
        
        right.click(function() {
            if(c != 1) {
                da.stop();
                da.animate(
                    {
                        marginLeft: (c-2)* (-620) + "px"
                    },
                    1000,
                    function() {
                        c--;
                })
            }
        })

  • 相关阅读:
    XML
    DAO
    JDBC
    事物、视图、索引、备份和恢复
    用户
    高级查询2
    高级查询1
    数据库设计
    初识MySQL
    古代和现在的区别Hashtable和HashMap
  • 原文地址:https://www.cnblogs.com/m110/p/7661683.html
Copyright © 2020-2023  润新知