Home » » Pasang Jam Animasi Colorfull With CSS

Pasang Jam Animasi Colorfull With CSS



Caranya adalah sebagai berikut :

1. Login ke akun Blog anda.
2. Pilih Rancangan, Add Gadget kemudian klik HTML/Java Script.
3. Copy Paste script di bawah ini ke dalam gadget HTML/Java Script anda.
<style>
/*----------------------
Colorful Clock With CSS & jQuery
--------------------------------------------*/
.clock{
    /* The .clock div. Created dynamically by jQuery */
    background-color:#252525;
    height:100px;
    width:100px;
    position:relative;
    overflow:hidden;
    float:left;
}

.clock .rotate{
    /* There are two .rotate divs - one for each half of the background */
    position:absolute;
    width:100px;
    height:100px;
    top:0;
    left:0;
}

.rotate.right{
    display:none;
    z-index:11;
}

.clock .bg, .clock .front{
    width:50px;
    height:100px;
    background-color:#252525;
    position:absolute;
    top:0;
}

.clock .display{
    /* Holds the number of seconds, minutes or hours respectfully */
    position:absolute;
    width:100px;
    font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
    z-index:20;
    color:#F5F5F5;
    font-size:30px;
    text-align:center;
    top:37px; /* sesuaikan agar letak angkanya pas di tengah */
    left:0;
 
    /* CSS3 text shadow: */
    text-shadow:4px 4px 5px #333333;
}

/* The left part of the background: */

.clock .bg.left{
     left:0;
}

/* Individual styles for each color: */
.orange .bg.left{
     background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyfvl90QRNExc7ZzGJGy7mmvd77_uVaAnrK1qTfZZyFGWGByJteKUKAqCw5iYUbXeukUcafEcvQh5DKMgUWGfeIxyJ1bk1TytX33yznE1tnpcV6TXXNfn_1aoNtD7A6tiQhsTb0BCBNi4/s1600/orange.png) no-repeat left top;
}
.green .bg.left{
     background:  url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN8Kmg6UEW64HNDJdg2aGANB8URXA5n0eCCf2J21ZBYSJObyAHHM33FIr2wuY6XlSRQaLBvt2jnaib0T4ann7nAvilblMVOqg68olnTIxRSY-yjxcJbzuYI80QNVUi-IgxtC1Nw3do_NM/s1600/green.png) no-repeat left top;
     }
.blue .bg.left{
        background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmQCvXgF6nP8_b_XxzohNUKQwmlUDM-G83L7BcyI5ZsEXddxJxJDZo64TbYJDEB7sXx2CWTMtVrvgHAnLy9Fa0efUf7P7gQn1G504SCZxD1jMvfT2KShHx70B2mKZTXu4IABoTnDATzck/s1600/blue.png) no-repeat left top;
        }

/* The right part of the background: */
.clock .bg.right{ left:50px; }

.orange .bg.right{
     background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyfvl90QRNExc7ZzGJGy7mmvd77_uVaAnrK1qTfZZyFGWGByJteKUKAqCw5iYUbXeukUcafEcvQh5DKMgUWGfeIxyJ1bk1TytX33yznE1tnpcV6TXXNfn_1aoNtD7A6tiQhsTb0BCBNi4/s1600/orange.png)no-repeat right top;
     }
.green .bg.right{
     background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN8Kmg6UEW64HNDJdg2aGANB8URXA5n0eCCf2J21ZBYSJObyAHHM33FIr2wuY6XlSRQaLBvt2jnaib0T4ann7nAvilblMVOqg68olnTIxRSY-yjxcJbzuYI80QNVUi-IgxtC1Nw3do_NM/s1600/green.png) no-repeat right top;
     }
.blue .bg.right{
     background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmQCvXgF6nP8_b_XxzohNUKQwmlUDM-G83L7BcyI5ZsEXddxJxJDZo64TbYJDEB7sXx2CWTMtVrvgHAnLy9Fa0efUf7P7gQn1G504SCZxD1jMvfT2KShHx70B2mKZTXu4IABoTnDATzck/s1600/blue.png) no-repeat right top;
     }


.clock .front.left{
    left:0;
    z-index:10;
}

</style>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/jquery.tzineClock.js"></script>
<script type="text/javascript" src="http://kangdadang.googlecode.com/files/script.js"></script>


<div id="fancyClock"></div>
4. Save

♂ Good Luck ♀

Semua ini adalah apa yang pernah aku cobain sendiri . . dan aku dapat/mengerti dari teman2 blogger lainnya karena aku hanya seorang blogger pemula yang ingin mengetahui lebih banyak hal lagi . . . . Thank's
Share
Related Post

0 comments:

Archives

Label


ShoutMix chat widget
Guest Book
 

Subscribe Via Email

Enter your email address:

Delivered by FeedBurner

My Blog

Show

Exploration


Show

[Valid Atom 1.0]
Google PageRank Checker Powered by  MyPagerank.Net

Powered by FeedBurner

SEO Stats powered by MyPagerank.Net

Show

Show

Exploration

Welcome To My Blog

I hope you find what you're looking for here . . Thank you for visit to my simple blog . .

Rizky Maulana

This life is a sacrifice and struggle . . and I am just a man who wants to be better than ever . .