Clickable tabs
Page 1 of 1
Clickable tabs
Hi, can enyone please tell me how to put a clickable tabs on forumotion? It simply doesn't work for me as I try to get to the second tab and anyother else besides the first one.
Last edited by zola jesus on February 15th 2013, 12:47 pm; edited 1 time in total
zola jesus- New Member
- Posts : 18
Reputation : 1
Language : polish / english
Re: Clickable tabs
- Code:
<script type='text/javascript'>
/* code written by kismet of RPG-Directory.com */
$(function(){ function selectTab(tab){ var i=1; while($('#tab'+i).length){ if(tab.attr('id')!=='tab'+i){ $('#tab'+i).removeClass('highlight'); $('#tab'+i+'-content').hide(); } else { tab.addClass('highlight'); $('#tab'+i+'-content').show(); } i++; }} $('#tab1').addClass('highlight'); $('.clickable').each(function(){ $(this).click(function(){ selectTab($(this)); });});});</script>
zola jesus- New Member
- Posts : 18
Reputation : 1
Language : polish / english
Re: Clickable tabs
- Code:
<div id="sidebar"><div style="height: 40px;"></div>
<center><div class="sidebarhumor"><div align="center"><ul id="tab-strip">
<li id="tab1" class="clickable">one</li>
<li id="tab2" class="clickable">two</li>
<li id="tab3" class="clickable">three</li>
<li id="tab4" class="clickable">four</li>
</ul></div><div id="tab1-content" class="tab-content"><div class="sidebarhumor1"><div class="gossip">
something
</div></div>
</div><div id="tab2-content" class="tab-content"><div class="sidebarhumor1"><div class="sidebarhumor2">
something2
</div>
</div><div id="tab3-content" class="tab-content"><div class="sidebarhumor1"><div class="gossip">
something3
</div></div>
</div>
<div id="tab4-content" class="tab-content">
something4
</div>
</div>
</div></center></div>
zola jesus- New Member
- Posts : 18
Reputation : 1
Language : polish / english
Re: Clickable tabs
Hm, Display > Generalities along with my html
zola jesus- New Member
- Posts : 18
Reputation : 1
Language : polish / english
Re: Clickable tabs
Here you go: http://testingforum.forumpl.net/
zola jesus- New Member
- Posts : 18
Reputation : 1
Language : polish / english
Re: Clickable tabs
That's weird because it's here:
zola jesus- New Member
- Posts : 18
Reputation : 1
Language : polish / english
Re: Clickable tabs
It works! Thanks a lot <3.
zola jesus- New Member
- Posts : 18
Reputation : 1
Language : polish / english
Similar topics
» Now links are not clickable! :/
» sub forums not clickable ?
» Clickable logo
» Clickable Links/title
» How to make a link clickable
» sub forums not clickable ?
» Clickable logo
» Clickable Links/title
» How to make a link clickable
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum