Ferryxz Yamato
Buka
Ingin kayak gini mudah kok. Silakan dilihat-lihat ya? :)
Link Share
Kode
<style type="text/css">
h5 {
font-family: Arial,Helvetica,Sans-serif;
font-size: 14px;
font-weight: bold;
letter-spacing: 0px;
line-height: 18px;
margin: -5px -10px 0px;
margin-top: -5px;
margin-right-value: -10px;
margin-bottom: 0px;
margin-left-value: -10px;
margin-left-ltr-source: physical;
margin-left-rtl-source: physical;
margin-right-ltr-source: physical;
margin-right-rtl-source: physical;
padding: 0px 10px 3px;
padding-top: 0px;
padding-right-value: 10px;
padding-bottom: 3px;
padding-left-value: 10px;
padding-left-ltr-source: physical;
padding-left-rtl-source: physical;
padding-right-ltr-source: physical;
padding-right-rtl-source: physical;
text-shadow: 0px 1px 0px rgb(44, 181, 94);
text-transform: none;
}
.msg_list {
list-style: none;
margin: 0;
padding: 0;
width: 100%;
}
.msg_head {
padding: 5px 10px;
cursor: pointer;
position: relative;
background-color: #90A7A4; color: rgb(0, 0, 0);
margin:1px;
}
.msg_body {
padding: 5px 10px 15px;
background-color:#000000;
}
</style>
<script src="http://javscript-code.googlecode.com/files/menuaccordion.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
//hide the all of the element with class msg_body
$(".msg_body").hide();
//slides the element with class "msg_body" when paragraph with class "msg_head" is clicked
$("#firstpane h5.msg_head").click(function()
{
$(this).next("div.msg_body").slideToggle(700).siblings("div.msg_body").slideUp ("slow");
});
//slides the element with class "msg_body" when mouse is over the paragraph
$("#secondpane h5.msg_head").mousedown(function()
{
$(this).next("div.msg_body").slideDown("slow").siblings("div.msg_body").slideUp ("slow");
});
});
</script><!--Ferryxzyamato.blogspot.com-->
<br />
<div class="msg_list" id="secondpane">
<h5 class="msg_head">
Isikan Bebas 1</h5>
<div class="msg_body" style="display: block;">
FERRYXZ
</div>
<h5 class="msg_head">
Isikan Bebas 2</h5>
<div class="msg_body" style="display: none;">
FERRYXZ
</div>
<h5 class="msg_head">
Isikan Bebas 3</h5>
<div class="msg_body" style="display: none;">
FERRYXZ
</div>
<h5 class="msg_head">
Isikan Bebas 4</h5>
<div class="msg_body" style="display: none;">
FERRYXZ
</div>
<h5 class="msg_head">
Isikan Bebas 5</h5>
<div class="msg_body" style="display: none;">
FERRYXZ
</div>
</div>
</div>
<div class="clear">
</div>
</div>
Catatan :
1. Untuk yang warna Merah ganti dengan Judul Sobat
2. Untuk yang warna Biru ganti dengan Script/ kata-kata yang diinginkan
0 komentar:
Tell us what you're thinking... !