If all your tabs are ajax tabs that call an external page, you can easily display content within the tabcontentarea that goes away after any of the tabs are clicked. Just insert that content into the tabcontentarea tab:
Code:
<ul id="maintab" class="shadetabs">
<li><a href="external.htm" rel="ajaxcontentarea">Bird</a></li>
<li><a href="external2.htm" rel="ajaxcontentarea">Dog</a></li>
<li><a href="external3.htm" rel="ajaxcontentarea">Cat</a></li>
<li><a href="external4.htm" rel="ajaxcontentarea">Sea Otter</a></li>
</ul>
<div id="ajaxcontentarea" class="contentstyle">
<p>This is some \tab content, embedded directly inside this space and not via Ajax. It can be shown until one of the tabs are clicked on. <p>
<p><b><a href="javascript: expandtab('maintab', 2)">Select 3rd tab of "maintab"</a></b></p>
</div>
The code in red is the temporary content. This technique only works if non of your tabs are of the following syntax:
Code:
<li class="selected"><a href="#default" rel="ajaxcontentarea">Intro</a></li>
That's because if the script detects that one of the tabs contain the "default" keyword, the inline content inside your tabcontentarea becomes the default content associated with that tab, and can be recalled by clicking on this tab (instead of going away for good).
Bookmarks