031

    () ;

    });

    $('#background1').click(function (){

    var selected = $('#background1').parent().parent().children(".select") ;

    () ;

    });

    $('.select').parent().each(function (){

    $(this).mouseover(function (){

    $(this).children(".select").sho() ;

    }) ;

    });

    $('.select').parent().each(function (){

    $(this).mouseout(function (){

    $(this).children(".select").hide() ;

    }) ;

    });

    $('#background').parent().parent().children('.select').children('p').each(function(){

    $(this).click(function(){

    $('#background').val($(this).html()) ;

    $('#background').parent().parent().children('.select').hide() ;

    $(".ydleft").removeClass($('#background2').val());

    $("body").removeClass($('#background2').val());

    $("body").attr('style' , '') ;

    $(".ydleft").attr('style' , '') ;

    $('#background2').val($(this).attr('class')) ;

    $(".ydleft").addClass($(this).attr('class'));

    $("body").addClass($(this).attr('class'));

    });

    });

    //背景色改变 end

    //文字大小

    $('#fontSize').click(function (){

    var selected = $('#fontSize').parent().parent().children(".select") ;

    () ;

    });

    $('#fontSize1').click(function (){

    var selected = $('#fontSize1').parent().parent().children(".select") ;

    () ;

    });

    $('#fontSize').parent().parent().children('.select').children('p').each(function(){

    $(this).click(function(){

    $('#fontSize').val($(this).html()) ;

    $('#fontSize').parent().parent().children('.select').hide() ;

    $(".yd_text2").removeClass($('#fontSize2').val());

    $('#fontSize2').val($(this).attr('class')) ;

    $(".yd_text2").addClass($(this).attr('class'));

    });

    });

    //文字大小 end

    //字体

    $('#fontFamily').click(function (){

    var selected = $('#fontFamily').parent().parent().children(".select") ;

    () ;

    });

    $('#fontFamily1').click(function (){

    var selected = $('#fontFamily1').parent().parent().children(".select") ;

本章未完,请点击下一页继续阅读