Sorry if I haven't been very clear; I'm barely understand my own thinking (!). What I want to do is call a second php function from the same page (rather than externally) the way it's done in the first default <a> link.
In the first, the line
Code:
<a href="#" rel="#default" class="selected">Most popular</a>
calls on the code further down the page
Code:
<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>
So could I change the line
Code:
<a href=" /ajaxtabs/external5.htm" rel="countrycontainer">Blogs</a>
to refer to another div code placed beneath the first. If that is possible, I'm not really clear how the href, rel and class relates to the javascript
Code:
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer" )
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
Or am I trying to do something that isn't advisable? At the moment I'm using the external links, it works fine.
Bookmarks