罗马时钟

$(document).ready(function () {
var style = document.styleSheets[0];

type=config.language_type;
space=getSpace(12,type);
$(".main-content .month").css("left",space.month+'px');
$(".main-content .day").css("left",space.day+'px');
$(".main-content .week").css("left",space.week+'px');
$(".main-content .shichen").css("left",space.shichen+'px');
$(".main-content .hour").css("left",space.hour+'px');
$(".main-content .minute").css("left",space.minute+'px');
$(".main-content .second").css("left",space.second+'px');


$("body").css("color",config.font_color);
style.cssRules[4].style.color=config.pointer_color;



if(config.sound)
{
    var ele=""
    $("body").append(ele);
}


switch(config.background_style)
{
    
    case 0:
        var ele1="url('images/"+config.background_picture+"') fixed no-repeat"
        $('body').css('background',ele1);
        $('body').css('background-size','100% 100%');
        break;
    case 1:
        $('body').append('')
        break;
    case 2:
        $('body').css('background',config.background_color);
        break;

你可能感兴趣的:(罗马时钟)