PDA

View Full Version : Tab in left side



rtr.souvik
09-10-2009, 07:12 AM
1) Script Title: tabcontent_suppliment.htm

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent_suppliment.htm

3) Describe problem:
I want to use this script for my web page, but i need to show the tabs in the left side of the content box.

Please help me

ddadmin
09-11-2009, 03:27 AM
Simply create a two column layout, and place the tabs in the left column, and the tab contents on the right. Something like:


<!--Left column-->
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">Tab 1</a></li>
<li><a href="#" rel="country2">Tab 2</a></li>
<li><a href="#" rel="country3">Tab 3</a></li>
<li><a href="#" rel="country4">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
</ul>


<!--Right column-->

<div style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">

<div id="country1" class="tabcontent">
Tab content 1 here<br />Tab content 1 here<br />
</div>

<div id="country2" class="tabcontent">
Tab content 2 here<br />Tab content 2 here<br />
</div>

<div id="country3" class="tabcontent">
Tab content 3 here<br />Tab content 3 here<br />
</div>

<div id="country4" class="tabcontent">
Tab content 4 here<br />Tab content 4 here<br />
</div>

</div>

<script type="text/javascript">

var countries=new ddtabcontent("countrytabs")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()

</script>