zoukankan      html  css  js  c++  java
  • 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文件复制到相应位置即可修改主题了
    */
  • 相关阅读:
    GitHub之初体验
    梦过去了
    转载:获取ISAPI_Rewrite重写后的URL
    看《分手合约》
    我们的家
    一盏灯的思考
    网站爱好者:开篇文
    致我们终将逝去的青春
    一起看看百度转码有多无耻!
    RPM
  • 原文地址:https://www.cnblogs.com/wanlxz/p/3456946.html
Copyright © 2011-2022 走看看