PDA

View Full Version : Tab Content Script - Turn off "Optional tab persistence feature"



vlane95678
02-05-2008, 01:26 AM
1) Script Title: Tab Content Script (v 2.0)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

3) Describe problem:

We want to disable the optional tab persisence feature so when a user reloads the page, revisits a page, or what not it will automatically begin on the first tab again. Right now, it remebers where you were, even when going on to the next page.

The script details highlights that it can do this, but we do not want it to. Can anyone HELP!!!

Example:
http://www.beachbrides.net/long_casual_106_wedding_dresses_semi_formal_wedding_gowns.htm

thetestingsite
02-05-2008, 02:46 AM
In this line of code, set the highlighted item to false.



<script type="text/javascript">

var myflowers=new ddtabcontent("flowertabs")
myflowers.setpersist(true)
myflowers.setselectedClassTarget("link") //"link" or "linkparent"
myflowers.init()

</script>


Hope this helps.

vlane95678
02-05-2008, 03:03 AM
That should be added to the instructions eh?

ddadmin
02-05-2008, 07:49 AM
That should be added to the instructions eh?

It is though: http://www.dynamicdrive.com/dynamicindex17/tabcontent_suppliment.htm