Wednesday, July 17, 2013

Tutorial : Navigate Box #2

Tumblr

こんにちは, 안녕하세요 , Assalamualaikum. 
Selamat kembali ke tutor hehe . macam biasalah benda lama je , lambat nak up[date je hihi. Atin tau ada yang dah pandai buat navigate ni, atin je yang terhegeh-hegeh baru nak ajar LOL :( . Ok la tak nak buang masa lagi atin nak bagi navigate box kali ke-2. die lebih kurang sama dengan tutor yang INI . So korang pilih la tapi...!!!!

| LIVE PREVIEW |

DESIGN/SIMPLE TEMPLATE ONLY
        
 Dashboard > Template > Edit Html 
 Tekan Ctrl + f serentak dan cari code  ]]></b:skin> 
 Copy code di bawah ni

ul.tabs li {
float: left;
margin: 0;
padding: 0;
height: 31px; /*--Subtract 1px from the height of the unordered list--*/
line-height: 31px; /*--Vertically aligns the text within the tab--*/
border-left: none;
margin-bottom: -1px; /*--Pull the list item down 1px--*/
overflow: hidden;
position: relative;
}
ul.tabs li a {
font-weight: bold;
color: #000;
display: block;
font-size: 10px;
padding: 0 20px;
border: 2px solid #FFF; /*--Gives the bevel look with a 1px white border inside the list item--*/
outline: none;
}
ul.tabs li a:hover {
background: #e1c9f3;
}
html ul.tabs li.active, html ul.tabs li.active a:hover { /*--Makes sure that the active tab does not listen to the hover properties--*/
background: #e1c9f3;
border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/
}
.tab_container {
overflow: hidden;
clear: both;
float: left; width: 98%;
background:#ffffff;
 background-attachment:fixed;
}
.tab_content {
padding: 2px;
height :260px;
}

 Paste di atas code  ]]></b:skin> tadi.

 Then, Ctrl + f serentak dan cari code  </head>
 Copy code di bawah ni
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js' type='text/javascript'/>
<script>
$(document).ready(function() {
$(&quot;.tab_content&quot;).hide(); //Hide all content
$(&quot;ul.tabs li:first&quot;).addClass(&quot;active&quot;).show(); //Activate first tab
$(&quot;.tab_content:first&quot;).show(); //Show first tab content
//On Click Event
$(&quot;ul.tabs li&quot;).click(function() {
$(&quot;ul.tabs li&quot;).removeClass(&quot;active&quot;); //Remove any &quot;active&quot; class
$(this).addClass(&quot;active&quot;); //Add &quot;active&quot; class to selected tab
$(&quot;.tab_content&quot;).hide(); //Hide all tab content
var activeTab = $(this).find(&quot;a&quot;).attr(&quot;href&quot;); //Find the href attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active ID content
return false;
});
});</script>
 Paste di atas code </head> tadi. Save.

 Next, Dashboard > Layout > Add Gadget > HTML/JavaScript
 Copy code di bawah ni
<ul class="tabs">
<li><a href="#tab1">TITLE</a></li>
<li><a href="#tab2">TITLE</a></li>
<li><a href="#tab3">TITLE</a></li>
</ul>
<div class="tab_container">
<div id="tab1" class="tab_content">
Tab 1 Put what?</div>
<div id="tab2" class="tab_content">
Tab 2 Put what?</div>
<div id="tab3" class="tab_content">
Tab 3 Put what?</div>
</div>
- Preview & save.



oren : color type
merah : background border
ungu : tajuk contain
hijau : letak lah apa2


1 comment:

Afiys Ase said...

untuk blogskin tak de erk ? :/