-->

Cara Membuat Menu Tabview Di Blog

Info seputar tutorial blogger dan seo friendly - Membuat Menu Tabview Di Blog
1. Masuk Ke Edit Html tanpa centang expand widget

2. Masukkan CSS berikut persis diatas kode ]]></b:skin>

div.TabView div.Tabs
{
height: 24px;
overflow: hidden;
}
div.TabView div.Tabs a
{
float: left;
display: block; background: #cccccc;
width: 90px; /* Lebar Menu Utama Atas */ text-align: center;
height: 24px; /* Tinggi Menu Utama Atas */
padding-top: 3px;
vertical-align: middle;
border: 1px solid #cccccc; /* Warna border Menu Atas */
border-bottom-width: 0;
text-decoration: none;
font-family: "Times New Roman", Serif; /* Font Menu Utama Atas */
font-weight: 900;
color: #000; /* Warna Font Menu Utama Atas */
}
div.TabView div.Tabs a:hover, div.TabView div.Tabs a.Active
{
background-color: #ffffff; /* Warna background Menu Utama Atas */
}
div.TabView div.Pages
{
clear: both;
border: 1px solid #cccccc; /* Warna border Kotak Utama */
overflow: hidden;
background-color: #ffffff; /* Warna background Kotak Utama */
}
div.TabView div.Pages div.Page
{
height: 100%;
padding: 0px;
overflow: hidden;
}
div.TabView div.Pages div.Page div.Pad
{
padding: 3px 5px;

3. Masukkan kode berikut persis dibawah kode ]]></b:skin>

<script type='text/javascript'>
//<![CDATA[
function tabview_aux(TabViewId, id)
{
var TabView = document.getElementById(TabViewId);
// ----- Tabs -----
var Tabs = TabView.firstChild;
while (Tabs.className != "Tabs" ) Tabs = Tabs.nextSibling;
var Tab = Tabs.firstChild;
var i = 0;
do
{
if (Tab.tagName == "A")
{
i++;
Tab.href = "javascript:tabview_switch('"+TabViewId+"', "+i+");";
Tab.className = (i == id) ? "Active" : "";
Tab.blur();
}
}
while (Tab = Tab.nextSibling);
// ----- Pages -----
var Pages = TabView.firstChild;
while (Pages.className != 'Pages') Pages = Pages.nextSibling;
var Page = Pages.firstChild;
var i = 0;
do
{
if (Page.className == 'Page')
{
i++;
if (Pages.offsetHeight) Page.style.height = (Pages.offsetHeight-2)+"px";
Page.style.overflow = "auto";
Page.style.display = (i == id) ? 'block' : 'none';
}
}
while (Page = Page.nextSibling);
}
// ----- Functions -------------------------------------------------------------
function tabview_switch(TabViewId, id) { tabview_aux(TabViewId, id); }
function tabview_initialize(TabViewId) { tabview_aux(TabViewId, 1); }
//]]>
</script>

4. Save template lalu kembali ke element laman dan klik tambah widget (add html)

5. Masukkan kode berikut

<form action="tabview.html" method="get">
<div class="TabView" id="TabView">
<div class="Tabs" style="width: 430px;">
<a>Terbaru</a>
<a>Artikel</a>
<a>Video</a>
<a>SMS</a>
<a>News</a>
<a>Radio</a>
<a>TV Streaming</a>
</div>
<div class="Pages" style="width: 430px; height: 275px;">
<div class="Page">
<div class="Pad">

Konten 1

</div>
</div>
<div class="Page">
<div class="Pad">

Konten 2

</div>
</div>
<div class="Page">
<div class="Pad">

Konten 3

</div>
</div>
<div class="Page">
<div class="Pad">

Kontent 4

</div>
</div>
<div class="Page">
<div class="Pad">

Konten 5

</div>
</div>
<div class="Page">
<div class="Pad">

Kontent 6

</div>
</div>
<div class="Page">
<div class="Pad">

Kontent 7

</div>
</div>
</div>

</div></form>
<script type="text/javascript">
tabview_initialize('TabView');
</script>

sumber : http://b-bloggerz.blogspot.com/2011/12/membuat-menu-tabview-di-blog.html

Cara Membuat Menu Tabview Di Blog