If i understand what your trying to do correctly; you want a link to reload the page but have a specified tab open by default?
You could use some PHP to do this.
first setup you links:
HTML Code:
<a href="mypage.php?tab=1">Click here to reload the page with tab 1 opened</a>
<a href="mypage.php?tab=3">Click here to reload the page with tab 3 opened</a>
Then have some php get the value of the tab you want open by default:
PHP Code:
<?php
$default_tab = $_GET['tab']; // This gets the tab number from the url
$selected = 'class="selected"'; // This is the text to add to the tab html
?>
If this is your tab html code:
HTML Code:
<ul id="countrytabs" class="shadetabs">
<li><a href="external1.htm" rel="countrycontainer">Tab 1</a></li>
<li><a href="external2.htm" rel="countrycontainer">Tab 2</a></li>
<li><a href="external3.htm" rel="countrycontainer">Tab 3</a></li>
</ul>
change it to this:
PHP Code:
<ul id="countrytabs" class="shadetabs">
<li><a <? if ($default_tab == 1) {print $selected;} ?> href="external1.htm" rel="countrycontainer">Tab 1</a></li>
<li><a <? if ($default_tab == 2) {print $selected;} ?> href="external2.htm" rel="countrycontainer">Tab 2</a></li>
<li><a <? if ($default_tab == 3) {print $selected;} ?> href="external3.htm" rel="countrycontainer">Tab 3</a></li>
</ul>
That should do it.
Bookmarks