- Cara membuatnya :
- Login blogger
- Rancangan, Edit Html, Cari kode ]]></b:skin>
- 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/AVvXsEhkYi4CvV0PrSaGkVJjTGbhBEcy641TajsFiccteoThyphenhyphenceR_2BuVQHx4XK5MxIzqD2EwDX1sfDbDfSoiTJQ9xBKzW-FNm0P8wHX5mjNT_tEIe2awPyis9sKjRRGBNyUEzhOAvbKjI1i-4g/s1600/btn-slide.png) no-repeat center top;
}
.btn-slide {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGiAgfxnkBrw6KHmrC0gUwn7_iPLztF_-pMNCzwtFlEyLIB8JXAwhYPoB1vblOgydTtysojLTwn6jshthynqeLrBMms1a9FC0KKeV01YsK5PhGvGJXfwDyZebpJ7x57hXMD83S6JRJNtc/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;
}
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/AVvXsEhkYi4CvV0PrSaGkVJjTGbhBEcy641TajsFiccteoThyphenhyphenceR_2BuVQHx4XK5MxIzqD2EwDX1sfDbDfSoiTJQ9xBKzW-FNm0P8wHX5mjNT_tEIe2awPyis9sKjRRGBNyUEzhOAvbKjI1i-4g/s1600/btn-slide.png) no-repeat center top;
}
.btn-slide {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGiAgfxnkBrw6KHmrC0gUwn7_iPLztF_-pMNCzwtFlEyLIB8JXAwhYPoB1vblOgydTtysojLTwn6jshthynqeLrBMms1a9FC0KKeV01YsK5PhGvGJXfwDyZebpJ7x57hXMD83S6JRJNtc/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;
}
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(){
$(".btn-slide").click(function(){
$("#panel").slideToggle("slow");
$(this).toggleClass("active"); return false;
});
});
</script>
<script type='text/javascript'>
$(document).ready(function(){
$(".btn-slide").click(function(){
$("#panel").slideToggle("slow");
$(this).toggleClass("active"); return false;
});
});
</script>
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>
<!-- Masukkan konten yang diinginkan disini -->
</div>
<p class="slide"><a href="#" class="btn-slide">Slide Panel</a></p>
Keterangan : 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
Komentar :
Posting Komentar