You can probably use the instance.onajaxpageload function. Say you have:
Code:
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.setpersist(false)
countries.init(4000)
</script>
That will take care of the first one being displayed for 4 seconds. Then you can add to that:
Code:
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.setpersist(false)
countries.init(4000)
countries.count = 0;
countries.onajaxpageload=function(pageurl){
if(++countries.count === 1){
countries.cancelautorun();
countries.autoruntimer = setInterval(function(){countries.autorun()}, 3000);
} else if (countries.count === 4){
countries.cancelautorun();
}
}
</script>
Notice the use of countries throughout the code. If you're using a different variable name, replace each instance of countries with it.
The browser cache may need to be cleared and/or the page refreshed to see changes.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks