Langkah-langkahnya sebagai berikut :(Semoga Bermanfaat)
2. Tambah Gadget / HTML
3. Masukkan HTML berikut :
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".btn-slide").click(function(){
$("#panel").slideToggle("slow");
$(this).toggleClass("active"); return false;
});
});
</script>
<style>
/* ---------------
Simple Slide panel with jQuery
---------------------------------- */
#panel {
height: auto;
background: #f90;
width: auto;
display: none;
padding: 7px;
border: #0C0;
-moz-border-radius-topright:10px;
-webkit-border-top-right-radius:10px;
-moz-border-radius-bottomright:10px;
-webkit-border-bottom-right-radius:10px;
-moz-border-radius-topleft:10px;
-webkit-border-top-left-radius:10px;
-moz-border-radius-bottomleft:10px;
-webkit-border-bottom-left-radius:10px;
}
.slide {
margin: 0;
padding: 0;
border-top: solid 4px #f90;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_SQPQNlaO7K79OQg4Jo2PntFPhRcABin5hIs0PDor_4jE5Y7ADITTldy0TAMLtPxw8ReXanjz4lxVAib3J6CbubNtt7756NP43QsbbGpHYza6QXK7EMo-rIw0deWkY1jZuJsHvupl89Y/s1600/btn-slide.png) no-repeat center top;
}
.btn-slide {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4mq-_-vgoIjd7dfTvXiQLRJvwAIII84kx8BqMkwGhV7sVoF0wcSAg5fgiJVyyb6F-uXcya_XcflwbRMjXjTzldw8sLYS2glxBsMX6l4e4jTjGhSGFnjm-_6OKzuYDkHQrrYLl_wjz310/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;
}
</style>
<div id="panel">
Daftar ke CBOX dan masukkan code HTML di sini
</div>
<p class="slide"><a href="#" class="btn-slide">Guest Book</a></p>
<script type="text/javascript">
$(document).ready(function(){
$(".btn-slide").click(function(){
$("#panel").slideToggle("slow");
$(this).toggleClass("active"); return false;
});
});
</script>
<style>
/* ---------------
Simple Slide panel with jQuery
---------------------------------- */
#panel {
height: auto;
background: #f90;
width: auto;
display: none;
padding: 7px;
border: #0C0;
-moz-border-radius-topright:10px;
-webkit-border-top-right-radius:10px;
-moz-border-radius-bottomright:10px;
-webkit-border-bottom-right-radius:10px;
-moz-border-radius-topleft:10px;
-webkit-border-top-left-radius:10px;
-moz-border-radius-bottomleft:10px;
-webkit-border-bottom-left-radius:10px;
}
.slide {
margin: 0;
padding: 0;
border-top: solid 4px #f90;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_SQPQNlaO7K79OQg4Jo2PntFPhRcABin5hIs0PDor_4jE5Y7ADITTldy0TAMLtPxw8ReXanjz4lxVAib3J6CbubNtt7756NP43QsbbGpHYza6QXK7EMo-rIw0deWkY1jZuJsHvupl89Y/s1600/btn-slide.png) no-repeat center top;
}
.btn-slide {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4mq-_-vgoIjd7dfTvXiQLRJvwAIII84kx8BqMkwGhV7sVoF0wcSAg5fgiJVyyb6F-uXcya_XcflwbRMjXjTzldw8sLYS2glxBsMX6l4e4jTjGhSGFnjm-_6OKzuYDkHQrrYLl_wjz310/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;
}
</style>
<div id="panel">
Daftar ke CBOX dan masukkan code HTML di sini
</div>
<p class="slide"><a href="#" class="btn-slide">Guest Book</a></p>
0 komentar:
Posting Komentar