Cara Membuat Menu Accordion di Blog Tanpa Edit HTML - foldersoal.com
Saturday, December 28, 2013
Edit
Salah satu fungsi dari accordion menu selain memperingkas tampilan blog, juga dapat memperindah blog, seperti juga fungsi tabber atau tab view, jadi blog Anda akan kelihatan lebih ringkas dan rapi.
untuk memasang Arccordion berikut ini anda tanpa harus masuk ke menu editor template anda, jika anda masih memiliki masalah dengan tampilan menu yanng masih belum tersusun rapi anda bisa menggunakan Menu arccordion.
Untuk penerapannya cukup mudah, anda tinggal masuk kemenu Tata letak/Layout, pilih HTML/Javascript dan copy pastekan kode berikut :
Demikian Membuat Menu Accordion Tanpa Edit HTML diBlog, semoga tampilan template anda menjadi semakin rapi dan semoga bermanfaat!
Berbagai Sumber
untuk memasang Arccordion berikut ini anda tanpa harus masuk ke menu editor template anda, jika anda masih memiliki masalah dengan tampilan menu yanng masih belum tersusun rapi anda bisa menggunakan Menu arccordion.
Untuk penerapannya cukup mudah, anda tinggal masuk kemenu Tata letak/Layout, pilih HTML/Javascript dan copy pastekan kode berikut :
<style type="text/css">
#accordion{width:100%;margin:auto;border:0px solid white} #accordion h2{background-color:#5f5e5e;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOr7o7B9m1bhpQmSknSNSj_IjRQEM-9Ad97VyUjaSbvTuYE4jER_swwedtXCL34-jlhwOVO2z09ySK0Tvz4qo7pyzmKrNabYpiZejGv2KZ8RfYyetRFV2bCqXaE7yxFk5B0bQC6ckUqGM/s1600/arrow_right.gif);background-repeat:no-repeat;background-position:right center;color:#d0cfce;font:normal 11px Tahoma;border-bottom:2px solid #2118FD;cursor:pointer;padding:5px 10px} #accordion .content{font:normal 11px Arial;background:#333;padding:5px 10px} #accordion .content li{background-image:url();background-repeat:no-repeat;background-position:left center;text-indent:0;border-bottom:1px dotted #595959;line-height:1.3em;margin:0;padding:2px 0 3px} #accordion .content li a:hover{text-decoration:none;color:#ff3c00} #accordion h2.active{background:#2118FD;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizPdEvnpPpShjzvaMtWldT2rqbOB4EhaTDiHT5BGITz3povQFDe_uWsq4UIl8RNuq9-jQNwUJNu5JDr7U4XNi5No_Xv3QJN4M6V5Td-qj1GLAwFAecpYyeaburW1FEav227bPRtwTGH5A/s1600/arrow_down.gif);background-repeat:no-repeat;background-position:right center;font-weight:700} </style>
<script type="text/javascript" src="https://aakyos.googlecode.com/svn/accordion.js"></script>
<script type='text/javascript'>
$(function() {
$('#accordion .content').hide();
$('#accordion h2:first').addClass('active').next().slideDown('slow');
$('#accordion h2').click(function() {
if($(this).next().is(':hidden')) {
$('#accordion h2').removeClass('active').next().slideUp('slow');
$(this).toggleClass('active').next().slideDown('slow');
}
});
});
</script>
<div id="accordion">
<h2>Title 1</h2>
<div class="content">
Isi konten 1
</div>
<div id="accordion">
<h2>Title 2</h2>
<div class="content">
Isi konten 2
</div>
<div id="accordion">
<h2>Title 3</h2>
<div class="content">
Isi konten 3
</div>
<div id="accordion">
<h2>Title 4</h2>
<div class="content">
Isi konten 4
</div>
<div id="accordion">
<h2>Title 5</h2>
<div class="content">
Isi konten 5
</div>
</div></div></div></div></div>
#accordion{width:100%;margin:auto;border:0px solid white} #accordion h2{background-color:#5f5e5e;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOr7o7B9m1bhpQmSknSNSj_IjRQEM-9Ad97VyUjaSbvTuYE4jER_swwedtXCL34-jlhwOVO2z09ySK0Tvz4qo7pyzmKrNabYpiZejGv2KZ8RfYyetRFV2bCqXaE7yxFk5B0bQC6ckUqGM/s1600/arrow_right.gif);background-repeat:no-repeat;background-position:right center;color:#d0cfce;font:normal 11px Tahoma;border-bottom:2px solid #2118FD;cursor:pointer;padding:5px 10px} #accordion .content{font:normal 11px Arial;background:#333;padding:5px 10px} #accordion .content li{background-image:url();background-repeat:no-repeat;background-position:left center;text-indent:0;border-bottom:1px dotted #595959;line-height:1.3em;margin:0;padding:2px 0 3px} #accordion .content li a:hover{text-decoration:none;color:#ff3c00} #accordion h2.active{background:#2118FD;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizPdEvnpPpShjzvaMtWldT2rqbOB4EhaTDiHT5BGITz3povQFDe_uWsq4UIl8RNuq9-jQNwUJNu5JDr7U4XNi5No_Xv3QJN4M6V5Td-qj1GLAwFAecpYyeaburW1FEav227bPRtwTGH5A/s1600/arrow_down.gif);background-repeat:no-repeat;background-position:right center;font-weight:700} </style>
<script type="text/javascript" src="https://aakyos.googlecode.com/svn/accordion.js"></script>
<script type='text/javascript'>
$(function() {
$('#accordion .content').hide();
$('#accordion h2:first').addClass('active').next().slideDown('slow');
$('#accordion h2').click(function() {
if($(this).next().is(':hidden')) {
$('#accordion h2').removeClass('active').next().slideUp('slow');
$(this).toggleClass('active').next().slideDown('slow');
}
});
});
</script>
<div id="accordion">
<h2>Title 1</h2>
<div class="content">
Isi konten 1
</div>
<div id="accordion">
<h2>Title 2</h2>
<div class="content">
Isi konten 2
</div>
<div id="accordion">
<h2>Title 3</h2>
<div class="content">
Isi konten 3
</div>
<div id="accordion">
<h2>Title 4</h2>
<div class="content">
Isi konten 4
</div>
<div id="accordion">
<h2>Title 5</h2>
<div class="content">
Isi konten 5
</div>
</div></div></div></div></div>
Keterangan : kode yang berwana biru adalah warna Background dan border, jika anda menyukai warna terang silahkan anda ganti css-nya. |
Demikian Membuat Menu Accordion Tanpa Edit HTML diBlog, semoga tampilan template anda menjadi semakin rapi dan semoga bermanfaat!
Berbagai Sumber