Tulisan ini persiapan posting untuk membuat tab menu
<style type="text/css">
div.TabView div.Tabs
{height: 30px;overflow: hidden}
div.TabView div.Tabs a {float:left; display:block; width: 91px; /* Weight size tab menu up */
text-align:center ; height: 30px; /* hight size tab menu up */
padding-top:8px; vertical-align:middle; border:1px solid #BDBDBD; /* Colour border tab menu up */
border-bottom-width:0; text-decoration: none; font-family: "Verdana", Serif; /* font teks menu */
font-weight:bold; color:#F4A460; /* Font teks colour tab menu */ -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px}
div.TabView div.Tabs a:hover, div.TabView div.Tabs a.Active {background-color: #EEE8AA; /* Backgroung colour tab menu */ }
div.TabView div.Pages {clear:both; border:1px solid #B22222; /* Colour border Box Page */ overflow:hidden; background-color:#696969; /* Colour Back ground Box Page */ }
div.TabView div.Pages div.Page {height:100%; padding:0px; overflow:hidden}
div.TabView div.Pages div.Page div.Pad {padding: 5px 5px}
</style>
<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>
<form action="tabview.html" method="get">
<div id="TabView" class="TabView">
<div style="width: 279px;" class="Tabs">
<a>Artikel</a>
<a>Medias</a>
<a>Software</a>
</div>
<div style="width:279px; height:250px; " class="Pages">
<div class="Page">
<div class="Pad">
Tips and trik
</div>
<li><a href="http://protonicatv.blogspot.com/2011/03/membuat-menu-blog.html">o Cara Membuat Menu di Blog</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/02/protonica-tv-com-150-tips-dan-trik.html">o Tips mempercepat Kinerja PC</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/03/protonica-tv-computer-cara-membuat.html">o Cara Membuat Blog bagi pemula</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/03/sample-gempa-tsunami.html">o mengatasi masalah computer restart</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/02/150-tips-dan-trik-mempercepat-kinerja.html">o 150 tips mempercepat Komputer</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/02/mematikan-automatic-update-di-windows.html">o Mematikan automatic update XP</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/03/protonica-tv-computer-mengenal-resistor.html">o Mengenal Resistor</a></li>
</div>
<div class="Page">
<div class="Pad">
Wallp, Mp3, Video
</div>
</div>
<div class="Page">
<div class="Pad">
Application Support
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
tabview_initialize('TabView');
</script>
<style type="text/css">
div.TabView div.Tabs
{height: 30px;overflow: hidden}
div.TabView div.Tabs a {float:left; display:block; width: 91px; /* Weight size tab menu up */
text-align:center ; height: 30px; /* hight size tab menu up */
padding-top:8px; vertical-align:middle; border:1px solid #BDBDBD; /* Colour border tab menu up */
border-bottom-width:0; text-decoration: none; font-family: "Verdana", Serif; /* font teks menu */
font-weight:bold; color:#F4A460; /* Font teks colour tab menu */ -moz-border-radius-topleft:10px; -moz-border-radius-topright:10px}
div.TabView div.Tabs a:hover, div.TabView div.Tabs a.Active {background-color: #EEE8AA; /* Backgroung colour tab menu */ }
div.TabView div.Pages {clear:both; border:1px solid #B22222; /* Colour border Box Page */ overflow:hidden; background-color:#696969; /* Colour Back ground Box Page */ }
div.TabView div.Pages div.Page {height:100%; padding:0px; overflow:hidden}
div.TabView div.Pages div.Page div.Pad {padding: 5px 5px}
</style>
<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>
<form action="tabview.html" method="get">
<div id="TabView" class="TabView">
<div style="width: 279px;" class="Tabs">
<a>Artikel</a>
<a>Medias</a>
<a>Software</a>
</div>
<div style="width:279px; height:250px; " class="Pages">
<div class="Page">
<div class="Pad">
Tips and trik
</div>
<li><a href="http://protonicatv.blogspot.com/2011/03/membuat-menu-blog.html">o Cara Membuat Menu di Blog</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/02/protonica-tv-com-150-tips-dan-trik.html">o Tips mempercepat Kinerja PC</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/03/protonica-tv-computer-cara-membuat.html">o Cara Membuat Blog bagi pemula</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/03/sample-gempa-tsunami.html">o mengatasi masalah computer restart</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/02/150-tips-dan-trik-mempercepat-kinerja.html">o 150 tips mempercepat Komputer</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/02/mematikan-automatic-update-di-windows.html">o Mematikan automatic update XP</a></li>
<li><a href="http://protonicatv.blogspot.com/2011/03/protonica-tv-computer-mengenal-resistor.html">o Mengenal Resistor</a></li>
</div>
<div class="Page">
<div class="Pad">
Wallp, Mp3, Video
</div>
</div>
<div class="Page">
<div class="Pad">
Application Support
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
tabview_initialize('TabView');
</script>
0 comments:
Posting Komentar