Last Minute Posts

14 September 2009 aRi isTiadi

bikin Accordion menu alias menu yang bisa kebuka dan ketutup secara otomatis

banyak dari teman teman yang menanyai gimana sih
bikin menu yang bisa kebuka dan ketutp secara otomatis
contohnya yang saya pakai di sidebar saya




karena banyak yang bertanya gimana cara membuatnya
oke deh saya akan kasih tutorialnya



pertama
Login dulu di Account blogger anda
kedua
pilih Tata Letak
ketiga
klik Edit HTML

cari tag HTML di bawah ini:
<head>

kalau sudah copy kode yang berwarna merah
dan paste di atas kode
<head>

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>

<script src='http://ariistiadi.googlepages.com/ddaccordion1.js' type='text/javascript'>

</script>



kalo masih bingung
seperti ini contoh penempatannya


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>

<script src='http://ariistiadi.googlepages.com/ddaccordion1.js' type='text/javascript'>

</script>


<head>


masih bingung juga?
nih saya kasih screen shootnya





terus coba cari kode yang berwarna hijau
</head>

kalo sudah ketemu
copy kode kode yang berwarna biru dan paste di bawah kode yang berwarna hijau
</head>

<script type='text/javascript'>

ddaccordion.init({
headerclass: &quot;headerbar&quot;, //Shared CSS class name of headers group
contentclass: &quot;submenu&quot;, //Shared CSS class name of contents group
revealtype: &quot;mouseover&quot;, //Reveal content when user clicks or onmouseover the header? Valid value: &quot;click&quot;, &quot;clickgo&quot;, or &quot;mouseover&quot;
mouseoverdelay: 200, //if revealtype=&quot;mouseover&quot;, set delay in milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
onemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: [&quot;&quot;, &quot;selected&quot;], //Two CSS classes to be applied to the header when it&#39;s collapsed and expanded, respectively [&quot;class1&quot;, &quot;class2&quot;]
togglehtml: [&quot;&quot;, &quot;&quot;, &quot;&quot;], //Additional HTML added to the header when it&#39;s collapsed and expanded, respectively [&quot;position&quot;, &quot;html1&quot;, &quot;html2&quot;] (see docs)
animatespeed: &quot;normal&quot;, //speed of animation: integer in milliseconds (ie: 200), or keywords &quot;fast&quot;, &quot;normal&quot;, or &quot;slow&quot;
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
//do nothing
}
})

</script>

nih screen shootnya


kalo sudah kita ke tahap selanjutnya
coba anda cari kode di bawah ini
]]></b:skin>

kalo sudah,copy kode kode di bawah ini persis di atas kode
]]></b:skin>

.urbangreymenu{width:100%}

.urbangreymenu .headerbar{font:bold 13px Verdana; color:white; background:#606060 url(http://i242.photobucket.com/albums/ff196/rodadepan/arrowstop.gif) no-repeat 8px 6px; margin-bottom:0; text-transform:uppercase; padding:7px 0 7px 31px}

.urbangreymenu .headerbar a{text-decoration:none; color:white; display:block}

.urbangreymenu ul{list-style-type:none; margin:0; padding:0; margin-bottom:0}

.urbangreymenu ul li{padding-bottom:2px}

.urbangreymenu ul li a{font:normal 12px Arial; color:black; background:#E9E9E9; display:block; padding:5px 0; line-height:17px; padding-left:20px; text-decoration:none}

.urbangreymenu ul li a:visited{color:black}

.urbangreymenu ul li a:hover{color:white; background:black}


nih screen shootnya


dah belum?
kalo sudah klik SIMPAN TEMPLATE

selanjutnya kita klik ELEMEN HALAMAN

kalau sudah di ELEMEN HALAMAN
klik Tambah Gadget


kalau dah di klik
pilih HTML/JavaScript

setelah itu copy kode di bawah ini

<div class="urbangreymenu">

<h3 class="headerbar"><a href="http://www.catatan-belajarku.blogspot.com">Catatan</a></h3>
<ul class="submenu">
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
</ul>

<h3 class="headerbar"><a href="http://www.catatan-belajarku.blogspot.com">Catatan</a></h3>
<ul class="submenu">
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
</ul>

<h3 class="headerbar"><a href="http://www.catatan-belajarku.blogspot.com">Catatan</a></h3>
<ul class="submenu">
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
<li><a href="http://www.catatan-belajarku.blogspot.com">catatan</a></li>
</ul>

</div>

jangan lupa klik SIMPAN


anda bisa mengganti link <a href="http://www.catatan-belajarku.blogspot.com">catatan</a>
dengan link milik anda sendiri

kalau anda ingin melihat lihat menu yang lain anda bisa
mengunjungi Dynamic Drive

Sumber: www.dynamicdrive.com

NB:belum berhasil? tanyakan saja

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

16 komentar:

............,,
...........:,,:.
..........;,/,,;
..........;,//,;
..........;,/,,;
...:"---------";.
..;,,,,,///,,,,:-----"
...-----------.,,,/,/,"
..;,,,,,///,,,,,:,,,,,,"
...,.----------.,,/,/,/,"
..;,,,,,///,,,,:,,,,,,,"
...,.---------.,,/,/,,"
...;,,,,,///,,,:_____"
....,.--------,.


Sip!

Fauzan NR [ fhom.blogspot.com ]

wuih.. mnatap...
ini yg saya cari2 bos...

http://i242.photobucket.com/albums/ff196/rodadepan/white-dog-blue-nose-emoticons-6.gif

Manteb tutornya bos..kebetulan lagi cari tutor2 jquery.. jgn lupa mampir balik ya..

postingan baik nih,,, thaks yah?

:-D wah mantap tutornya sob perlu dicoba nanti

ini juga bagus emotnya hehehe

info bagus sobat,,,, makasih,

saloooot maennya dynamic drive nih, ada link script yg baru lagi enggak nih...xixixixixix

mantap,. kbtulan ge mo buat web baru,. jadi bisa di pake ni tutorialnya,. thanks kang,.

wa terimakasijh nich

ketemu juga nich tutorialnuya

Successfully implement and the results are solid as well ... had long dreamed of this kind in the blogger ...

Produk dijamin asli orginal.Dapatkan harga promo Nabila Shop : Barang yang Kami Tawarkan Semuanya Barang ASLI ORGINAL Ada Garansi Resmi Distributor dan Garansi TAM 2 bebas resiko bebas penipuan.
Semua Produk Kami Baru dan Msh Tersegel dLm BOX_nya.
BERMINAT HUB-SMS 085-757-299-675 ATAU KLIK WEBSET RESMI KAMI http://nabilashop77.blogspot.com/.

Ready Stock!
Samsung Galaxy S4 Mini Rp.2,500.000
Ready Stock!
Apple iPhone 5 Rp.2,700.000
Ready Stock!
BlackBerry 9380 Orlando - Black.Rp.900.000,-
Ready Stock!
BlackBerry Curve 8520 Gemini.Rp.500.000,-
Ready Stock!
BlackBerry Bold 9780 Onyx 2.Rp.800.000,-
Ready Stock!
Blackberry Curve 9320.Rp.700.000,-
Ready Stock!
Samsung Galaxy Note 10.1.Rp.2,500.000.
Ready Stock!
Samsung Galaxy Tab 2 (7.0).Rp. 1.000.000
Ready Stock!
Samsung Galaxy S III Mini.Rp.1.800.000.
Ready Stock!
Samsung Galaxy Nexus I9250 - Titanium Si.Rp.1.500.000,-
Ready Stock!
Samsung Galaxy Note N7100.Rp.2.500.000.
Ready Stock!
Samsung Galaxy Note N7000 - Pink.Rp.1.700.000.
Ready Stock!
Samsung Galaxy Y S5360 GSM - Pure White.Rp.500.000,-
Ready Stock!
Nokia Lumia 800 - Matt Black.Rp.1.700.000,-
Ready Stock!
Nokia Lumia-710-whiteRp. 900.000,-
Ready Stock!
Nokia C2-06 Touch & Type -Dual GSM-Rp.450.000,-
Ready Stock!
Nokia Lumia 710 - Black.Rp. 900.000,-
Ready Stock!
Apple iPhone 4S 16GB (dari XL) - Black.Rp.1.200.000,-
Ready Stock!
Apple iPhone 4S 16GB (dari Telkomsel).Rp.1.200.000,-
Ready Stock!
Apple iPod Touch 4 Gen 8GB.Rp.700.000.
Ready Stock!
APPLE iPod Nano 8GB - Pink.Rp.500.000,-
Ready Stock!
Acer Aspire 4755G Core i5 2430 Linux Blue.Rp 1.700.000.
Ready Stock!
Acer Aspire One AOD270 10.1.-Rp. 1.000.000,-
Ready Stock!
Acer TravelMate TM8481-2462G32.Rp. 1.400.000
Ready Stock!
Acer ICONIA Tab W500 10.1" Tablets Notebook.Rp. 1.100.000,-
Ready Stock!
Nikon D7000 kit 18-105mm.Rp.1.700.000.
Ready Stock!
Nikon D90 Kit 18-105mm Vr.Rp 1.300.000.
Ready Stock!
Nikon Coolpix L 120 Red.Rp. 900.000
Ready Stock!
Nikon Coolpix P 500 Black.Rp 1.000.000

Kirimkan Komentar Anda

Mohon Komentarkan ketika anda selesai membaca

Bagi anda pengguna blog,harap pilih Name/URL
untuk memudahkan saya membacklink anda