accordian menu tab

Tuesday, April 19, 2011

assalamu'alaikum w.b.t. and a very good day to all

well , today as per requested by one of my darlings , i'm about to provide you with another tutorial . if you could see there's a column at my sidebar that i had customized recently . if you haven't got any idea which , here it is :


so to do so , all you have got to do is follow these steps :
go to
DESIGN / PAGE ELEMENT / ADD A GADGET / HTML JAVASCRIPT

all you need to do then , is just paste the code below inside the column .
<style type="text/css">

h5 {
font-family: verdana;
font-size: 13px;
padding: 0 0 1em;
font-weight:normal;
color: #000000;
}



.msg_list {
list-style: none;
margin: 0;
padding: 0;
width: 100%;
}



.msg_head {
padding: 5px 10px;
cursor: pointer;
position: relative;
background-color:#7D1B7E;
margin:1px;
}



.msg_body {
padding: 5px 10px 15px;
background-color:#FFFFFF;
}

</style>
<script type="text/javascript" src="https://sites.google.com/site/jquery01/tabmenuaccordion.js"></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").mouseover(function()


{

$(this).next("div.msg_body").slideDown("slow").siblings("div.msg_body").slideUp("slow");

});

});

</script>

<div class="msg_list" id="secondpane">
<h5 class="msg_head">title 1</h5>
<div class="msg_body">


insert your code / text here


</div>


<h5 class="msg_head">title 2</h5>
<div class="msg_body">


insert your code / text here


</div>


change the highlighted areas with what you wished to hide , and rearrange to the positions you like . and click save . and you're done .


8 heart throbbing words:

eRza farEeha said...

nice tutorial yunk..:)

Fantastic Ajane said...

hi mar da lama cari cmna buat menu tab jenis ni tp x jumpa..last2 FA guna yg ada sekarang...:) nice info BTW..:)

.:|kamaryeah|:. said...

@eRza farEeha
wee~
thanks erza dear~

.:|kamaryeah|:. said...

@Fantastic Ajane
weehoo~
klo mau guna nnt ambil je k~

Jierah said...

whoaa. tengs alot kak~ <3 u ;)

.:|kamaryeah|:. said...

@Jierah
no prob dear~
<3 u too~

Tuan Auz said...

wahh comelnye blog kama!

.:|kamaryeah|:. said...

@Tuan Auz
thank you dear~

 

copyright© 2010 kamaryeah tajuddin
all rights reserved