-p-
We have discussed 2 basic techniques to make pure CSS tabs. If using javacript we will get better enhancement for the tabs. This page uses <li> + block <a> technique plus javacript script easily customerizing the the tabs you need. With only one line of script, you could set,
Let's take a look at how to achieve these.
To customerize the tabs on the right needs just one line of javascript.
Bindtabs("tabco1",3,"mouseover","t"); in which
<div id="tabco1">
<ul>
<li><a>tab 1</a></li>
<li><a>tab 2</a></li>
<li><a>tab 3</a></li>
<li><a>tab 4</a></li>
</ul>
<div>content tab1</div>
<div >content tab2</div>
<div>content tab3</div>
<div >content tab4</div>
</div>
To customerize the tabs on the right needs just one line of javascript.
Bindtabs("tabco2",2,"click","b"); in which
<div id="tabco2">
<div>content tab1</div>
<div >content tab2</div>
<div>content tab3</div>
<div >content tab4</div>
<ul>
<li><a>tab 1</a></li>
<li><a>tab 2</a></li>
<li><a>tab 3</a></li>
<li><a>tab 4</a></li>
</ul>
</div>
To customerize the tabs on the right needs just one line of javascript.
Bindtabs("tabco3",0,"mouseover","l"); in which
<div id="tabco3">
<ul>
<li><a>tab 1</a></li>
<li><a>tab 2</a></li>
<li><a>tab 3</a></li>
<li><a>tab 4</a></li>
</ul>
<div>content tab1</div>
<div >content tab2</div>
<div>content tab3</div>
<div >content tab4</div>
</div>
To customerize the tabs on the right needs just one line of javascript.
Bindtabs("tabco4",2,"click","b"); in which
<div id="tabco4">
<div>content tab1</div>
<div >content tab2</div>
<div>content tab3</div>
<div >content tab4</div>
<ul>
<li><a>tab 1</a></li>
<li><a>tab 2</a></li>
<li><a>tab 3</a></li>
<li><a>tab 4</a></li>
</ul>
</div>
What else we need to make these tabs? Yes, CSS code and javascript. This will be our next topic - content tabs script generator.
Social Bookmark if the page is useful.