Home » » Simple Slide Panel With Jquery

Simple Slide Panel 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 :
/* ---------------
Simple Slide panel with jQuery
---------------------------------- */
#panel {
    background: #754c24;
    height: 200px;
    display: none;
}
.slide {
    margin: 0;
    padding: 0;
    border-top: solid 4px #422410;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSk9aCvEJT5jVciEXvwDiNbLoHtD-mwvmFe9VxDEeyuezGGfDgSQqgv3kDgGmhucRXedWvyqfWjJFC5K1GhQPcehGz3sWZBCxXbSqJs2xSw-YHGMs6Z6L8DvYDYnI_v_FRypBdIIcdOrI/s1600/btn-slide.png) no-repeat center top;
}
.btn-slide {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA9tJ_KqZr6HJIKX3GpC65TpX5Wfpc-yHknVCDZDvnDgPJhvLN_BB8G1DFk7GA7Sk3tuGQDx-_7EAD8B1HoEgnlWdc-wMDtLiUoFS2mO2r5HfB1qHAUHlSy6lWtfmadACvxayOQQkItGM/s1600/white-arrow.gif) no-repeat right -50px;
    text-align: center;
    width: 144px;
    height: 31px;
    padding: 10px 10px 0 0;
    margin: 0 auto;
    display: block;
    font: bold 120%/100% Arial, Helvetica, sans-serif;
    color: #fff;
    text-decoration: none;
}
.active {
    background-position: right 12px;
}

8. selanjutnya simpan java script berikut tepat diatas kode </head>:

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
$(document).ready(function(){

    $(&quot;.btn-slide&quot;).click(function(){
        $(&quot;#panel&quot;).slideToggle(&quot;slow&quot;);
        $(this).toggleClass(&quot;active&quot;); return false;
    });
  
    
});
</script>

9. Selanjutnya masuk ke menu Rancangan, Tambah Gadget, pilih Html/Java script dan simpan kode berikut:
<div id="panel">
    <!-- Masukkan konten yang diinginkan disini -->
</div>

<p class="slide"><a href="#" class="btn-slide">Slide Panel</a></p>


NB:  sebagai tambahan. jika script <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>  ini sudah ada pada template kawan-kawan, kawan semua tak perlu lagi mnambahkan script tadi pada template yang dipakai.
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 . .