currantbun
04-17-2009, 01:44 PM
1) Script: Ajax tabs content
2) http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/
3) Problem:
I've searched and I cant find the way to do this (hope it's here somewhere). The tabs look great and are nearly perfect on my test site but does anyone know if it's possible to repeat the php function in the other tabs (Blogs, Links) in the same way I have inserted it in the first one (Most Popular) and how I should do it:
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="#default" class="selected">Most popular</a></li>
<li><a href=" /ajaxtabs/external5.htm" rel="countrycontainer">Blogs</a></li>
<li><a href="/external4.htm" rel="countrycontainer">Links</a></li>
</ul>
<div id="countrydivcontainer" style="border:1px solid gray; width:278px; margin-top: 2px; margin-bottom: 1em; display:block; padding: 10px">
<p><?php _e('Most Popular','custom');?>
<?php akpc_most_popular($limit = 5, $before = '<li>', $after = '</li>'); ?>
</p>
</div>
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer" )
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
Thanks!
2) http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/
3) Problem:
I've searched and I cant find the way to do this (hope it's here somewhere). The tabs look great and are nearly perfect on my test site but does anyone know if it's possible to repeat the php function in the other tabs (Blogs, Links) in the same way I have inserted it in the first one (Most Popular) and how I should do it:
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="#default" class="selected">Most popular</a></li>
<li><a href=" /ajaxtabs/external5.htm" rel="countrycontainer">Blogs</a></li>
<li><a href="/external4.htm" rel="countrycontainer">Links</a></li>
</ul>
<div id="countrydivcontainer" style="border:1px solid gray; width:278px; margin-top: 2px; margin-bottom: 1em; display:block; padding: 10px">
<p><?php _e('Most Popular','custom');?>
<?php akpc_most_popular($limit = 5, $before = '<li>', $after = '</li>'); ?>
</p>
</div>
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer" )
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
Thanks!