Originally as: "javascript - Tabifier" (in Japanese)
Click Here to Get Started! -- TypePad clobbers window.onload :-(
Getting Started
- Copy and paste the following:
- Put the tab title in <div class="tab" title="Title 1">のtitle. And fill the content in the <div> tag.
- You may add as many tabs as you like. Any tags where class="tab" are "tabified".
Customize
Set the javascript variables below to customze the look & feel of the tab. (RHS is the default)
Just peek and poke these to find what they mean.
How does it work?
- Upon loding (window.onload) the style of <div class="tab"> are all set { visibility: hidden } and the content of <div class="tabheader"> is replaced with tab headers.
- And when the tab is clicked, the content of <div class="tabbody"> gets replaced with the corresponding <div class="tab"> via element.innerHTML.
To find out more, just check the source code.
Conflict?
- Sometimes <div class="tab"> is occupied. In such cases, just add
And replace <div class="tab"> with <div class="mytab">. - In some environment (including Typepad :-(), window.onload is clobbered so Tabifier is not initialized. For such cases, add a link like this:
<a href="#" onclick="tab.init()">Click Here to Get Started!</a>
Most "modern" browsers (IE6, Firefox 1.501, Safari) should be ok. Sorry, old browsers like NS4 and IE4 are not. Post a comment here if you have a problem.
(C) 2006 Dan Kogai, All Rights Reserved

This work is licensed under a Creative Commons Attribution2.5 License.
- javascript - Tabifier (my original post in Japanese)
- CSS と JavaScript でタブ切り替え
Enjoy!
Dan the (?:ECMA|Java)scripter
Hello ! This is very [url=http://www.google.com/bb497]good[/url] site !!
Posted by: Nelly | Tuesday, 04 April 2006 at 09:36
ORANJESTAD, Aruba - Felix rapidly strengthened into a dangerous Category 5 hurricane and churned through the Caribbean Sea on a path toward Central America, where forecasters said it could make landfall as “potentially catastrophic” storm.
Felix was packing winds of up to 165 mph as it headed west, according to the U.S. National Hurricane Center. It was projected to skirt Honduras’ coastline on Tuesday before slamming into Belize on Wednesday.
“As it stands, we’re still thinking that it will be a potentially catastrophic system in the early portions of this week, Tuesday evening, possibly affecting Honduras and then toward the coast of Belize,” said Dave Roberts, a hurricane specialist at the center in Miami.
Posted by: jighiplyjep | Tuesday, 04 September 2007 at 11:42
cba28c81a1 court lipitor ranbaxy b6a92 break lipitor not tablet why 999a1 lipitor side effects from people 0bd1a lipitor myopathy c12e4 lipitor swelling of the leg fe4b8
Posted by: lipitor | Wednesday, 18 February 2009 at 02:47
WkwmyE jnT3bz8Qpgj62BaK3ldfTm
Posted by: gregory | Sunday, 26 July 2009 at 05:33
this is be cool 8) homemade preteen porn =)) children nude swim 73826 hardcore kds 8-)) preteen illegal pedo porn lvcld child homo sex >:-OO ls girls magazine vcojy underage preteens bbs r(at)ygold hussyfan 776 illegal very young japanese virgin anal sex 489 free illegal romanian teen porn wznuxg nude preteen girls 274 preteen naked ndkah bendaz 8]]] child pornography and the internet 8[[ asian pthc 366871 free pthc :-((( sexy military girls 519 lol animals 23030 russian child porn =]] illegal kds porn =-((( child pornography website 8PP very young kids naked zotbis very young little virgin naked pics fgvo 69com 677966 illegal very young japanese virgin teen sex webcam pictures ois young nymphets art, young nymphet 88816 innocent nude preteens lisw little preteen girls masturbating :-]] child bikini models zesf young child models hnh naturist preteen bbs :-(((
Posted by: Latiaeyk | Wednesday, 12 August 2009 at 09:21
xwUQka http://djg8Dnw3NxU82k0Skg.com
Posted by: joseph | Saturday, 19 September 2009 at 23:19