• jQuery 基础教程(第3版) ---第七章习题答案


    //第一题
    $(document).ready(function(){
         $('#books').cycle({
            timeout:3000,
            speed:1500,
            pause:true,
            before:function(){//回调函数
                $('#slider').slider('value',$('#books li').index(this));
            }
         });
    });
    //第二题
    $(document).ready(function(){
        $.cookie('cyclePaused','y',{expires:30});
        //console.log($.cookie('cyclePaused'));
    });
    
    //第三题
    $(document).ready(function(){
        $('#books .title').resizable({
            grid: [10, 10],
            handles:'se',
            aspectRatio:1 //设比例
        });
    });
    //第四题
    $(document).ready(function(){
        $('<div id="slider"></div>').slider({
            min:0,
            max:$('#books li').length-1,
            animate:'slow',
            slide:function(event,ui){
                $('#books').cycle(ui.value);
            }
        }).appendTo('#books-controls');
    });
    //第五题
    /*
        这题也没什么好说的,注意一些问题,就是下载的主题只需将css下的theme-name文件夹
        下的images文件夹与.custom.css文件复制到相应位置即可修改主题了
    */
  • 相关阅读:
    HAOI2008题解
    codeforces round375(div.2)题解
    codeforces round373(div.2) 题解
    TJOI2015题解
    CF976D. Degree Set
    dtoj#4243. 熊猫(i)
    dtoj#4242. 大爷(w)&&CF1061E
    CF786C Till I Collapse
    dtoj#4239. 删边(cip)
    dtoj#2504. ZCC loves cube(cube)
  • 原文地址:https://www.cnblogs.com/wanlxz/p/3456946.html
Copyright © 2020-2023  润新知