membuat menu tavView

ok,. ni permintan teman" ku,.,.
kali ini cara membuat menu tavView,.,. ok langsung aj ya,.
masuk akun blogger anda tata letak--> element laman --> tambah widget --> html/java script
masukkan code ini ,.,.

copy semua kodenya ya


<script language="JavaScript" type="text/javascript">

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>


<div id="TabView" class="TabView">
<div style="width: 100%;" class="Tabs">
<a title="click">kosong</a>
<a title="click">kosong</a>
<a title="click">kosong</a>
<a title="click">kosong</a>
<a title="click">kosong</a>
</div>
<div style="width: 99%; height: 200px;" class="Pages">

<!--Awal Menu 1-->
<div class="Page"><div class="Pad">

isi html/java script / text

</div></div>
<!--Akhir Menu 1-->
<!--Awal Menu 2-->
<div class="Page"><div class="Pad">

isi html/java script / text

</div></div>
<!--Akhir Menu 2-->

<!--Awal Menu 3-->
<div class="Page"><div class="Pad">

isi html/java script / text


</div></div>
<!--Akhir Menu 3-->

<!--Awal Menu 4-->
<div class="Page"><div class="Pad">

isi html/java script / text

</div></div>
<!--Akhir Menu 4-->
<!--Awal Menu 5-->
<div class="Page"><div class="Pad">

isi html/java script / text


</div></div>
<!--Akhir Menu 5-->


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

pasang tavVIew seperti ini klik <a href="http://grow-download.blogspot.com/2009/12/membuat-menu-tavview.html" target="blank">disini!!</a>




ok selesai ni ,. di save ya,.,. jadi dhe,.,.
tinggalkan komentar anda,. makasi,.,.