Home » » Animated Hover With Jquery

Animated Hover With Jquery

Caranya adalah sebagai berikut :

1. Login ke Akun Blogger anda masing-masing.
2. Klik Design or Rancangan, kemudian pilih Edit HTML
3. Centang (Expand Widget Template)
4. Untuk keamanan lebih baik kita (Download Template Lengkap)
5. Gunakan (Ctrl+F) or (Alt+E+F) untuk memudahkan pencarian
6. Cari kode ]]></b:skin>
7. Dan Simpan kode berikut diatasnya :
/*Animated Hover with jQuery*/
#anihover {
    margin: 100px 0 0;
    padding: 0;
    list-style: none;
#anihover li {
    padding: 0;
    margin: 0 2px;
    float: left;
    position: relative;
    text-align: center;
#anihover a {
    padding: 14px 10px;
    display: block;
    color: #000000;
    width: 144px;
    text-decoration: none;
    font-weight: bold;
    background: url(images/button.gif) no-repeat center center;
#anihover li em {
    font-weight: normal;
    background: url(images/hover.png) no-repeat;
    width: 180px;
    height: 45px;
    position: absolute;
    top: -85px;
    left: -15px;
    text-align: center;
    padding: 20px 12px 10px;
    font-style: normal;
    z-index: 2;
    display: none;

8. Selanjutnya simpan kode berikut diatas kode </head> :

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

<script type="text/javascript">

    $("#anihover a").append("<em></em>");
    $("#anihover a").hover(function() {
        $(this).find("em").animate({opacity: "show", top: "-75"}, "slow");
        var hoverText = $(this).attr("title");
    }, function() {
        $(this).find("em").animate({opacity: "hide", top: "-85"}, "fast");

9. Save

10. Cara penempatannya di HTML
<ul id="anihover">
        <a href="#" title="Go to homepage">Home</a>       
        <a href="#" title="Find out who I am">About</a>
        <a href="#" title="Subscribe RSS feeds">Subscribe RSS</a>
11. Finis
Related Post




ShoutMix chat widget
Guest Book

Subscribe Via Email

Enter your email address:

Delivered by FeedBurner

My Blog




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

Powered by FeedBurner

SEO Stats powered by MyPagerank.Net




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 . .