First, try adding a HTML anchor (< name="whatever"></a>) to the position within the Tab Content you wish a link to jump to when clicked on. Then, modify your link's href attribute to go to that HTML anchor while calling tabcontent.expandit() to first expand that Tab Content first. Altogether it may look something like:
Code:
<h3>Demo #3- Different Tab Style, "slideshow mode" enabled</h3>
<p><a href="#germany" onClick="mypets.expandit(1)">2nd tab, germany content</a></p>
<div id="pettabs" class="indentmenu">
<ul>
<li><a href="#" rel="dog1" class="selected">Tab 1</a></li>
<li><a href="#" rel="dog2">Tab 2</a></li>
<li><a href="#" rel="dog3">Tab 3</a></li>
<li><a href="#" rel="dog4" id="myfavorite">Tab 4</a></li>
<li><a href="http://www.google.com">Google</a></li>
</ul>
<br style="clear: left" />
</div>
<div style="border:1px solid gray; width:550px; padding: 5px; margin-bottom:1em">
<div id="dog1" class="tabcontent">
Tab content 1 here<br />Tab content 1 here<br />
<p><b><a href="javascript: mypets.expandit('myfavorite')">Click here to select tab with id="myfavorite"</a></b></p>
</div>
<div id="dog2" class="tabcontent">
Tab content 2 here<br />Tab content 2 here<br />
<div style="height:600px"></div>
<a name="germany"></a> Germany description
<div style="height:600px"></div>
</div>
<div id="dog3" class="tabcontent">
Tab content 3 here<br />Tab content 3 here<br />
</div>
<div id="dog4" class="tabcontent">
Tab content 4 here<br />Tab content 4 here<br />
</div>
</div>
<script type="text/javascript">
var mypets=new ddtabcontent("pettabs")
mypets.setpersist(true)
mypets.setselectedClassTarget("link")
mypets.init(2000)
</script>
Bookmarks