OK, I got it to work, but it is a little bit complicated, especially if you also want the individual content2A and content3A pages to work on their own.
First off, you need a different Animated Collapsible DIV script for the top page. Where it has:
Code:
animatedcollapse.dotask(window, function(){thisobj._getheight(persistexpand)}, "load")
replace it with:
Code:
setTimeout(function(){thisobj._getheight(persistexpand)}, 300)
This new script should only be attached/linked to, or on the top page. And the original one should only be attached/linked to, or on the content pages.
Next, on the top page, where you have this:
Code:
<script type="text/javascript">startajaxtabs("ajaxtabber1")</script>
Make it look like so:
Code:
<script type="text/javascript">
startajaxtabs("ajaxtabber1");
var collapse1;
var collapse2;
</script>
Now, there were a few just normal errors on your content pages, so rather than try to explain all that and the new code required, I will just paste in the proper code for both of these pages:
content2A.htm
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html><head><script type="text/javascript" src="http://onlychildproject.com/animatedcollapse.js"></script></head>
<body>
<p>Initial content for Tab2 Here</p>
<p>Well, this sketch is a study of the heads of Hark- away and Columbine, made
before the picture was begun. The horse was old when I married your papa : he
was past work, and used to live quite an idle He passed his days out in the
large field, and at night was put into a comfortable shed with plenty of nice
warm straw. </p>
<a href="javascript:collapse1.slidedown()">Slide Down</a> || <a href="javascript:collapse1.slideup()">Slide Up</a>
<div>
<div id="c1">
*** This is the Extra Content *****
The Parts contain 56 royal pages ; from Eight to
Twelve Illustrations, and either a Coloured Plate or a Full-
page Illustration on plate paper. Each month several Prizes
are offered for the Solution of Puzzles ; Ten Guinea and Ten
Half -Guinea Prizes for Essays, Stories, Poems, Maps,
Models, Paintings. All the Stories are Completed
in the Volume in which they commence. Articles on
subjects interesting to Boys, written by the most popular
living Authors, appear each month.
</div>
</div>
<img src="http://onlychildproject.com/images/1by1.gif" style="visibility:hidden; position:absolute;top:-20px;left:-20px;" onload="if(location.href.indexOf('content2A')<0){collapse1=new animatedcollapse('c1', 500, false)}">
<script type="text/javascript">var collapse2=new animatedcollapse("c1", 500, false)</script>
</body></html>
content3A.htm
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html><head><script type="text/javascript" src="http://onlychildproject.com/animatedcollapse.js"></script></head>
<body>
<p>Initial content for Tab3 Here</p>
<p>Here we have a pleasant sociable tea-party.
These little people are Rosy and Maude Drum- mond, but they call themselves just now Mrs. Jones and Mrs. Smith. They meet at tea at Miss
Penelope Prim's ; that lady being the big doll,
seated on the easy chair in the middle.
</p>
<p><a href="javascript:collapse2.slideit()">Click Here for More</a></p>
<div>
<div id="c2">
*** This is the Extra Content for Tab3*****
Really, Mrs. Tabbyskin, you do not improve
upon more intimate acquaintance. Although you
are now attacking one of your own size and kind,
which is better than killing a dear little bird, still
you look so ugly and vicious, with your glaring
eyes, flattened ears, and open mouth, that I for one
could never pet you again. The pretty white
cat does not look half so savage. Good-bye, Mrs.
Tabbyskin, and we don't want to see you again.
</div>
</div>
<img src="http://onlychildproject.com/images/1by1.gif" style="visibility:hidden; position:absolute;top:-20px;left:-20px;" onload="if(location.href.indexOf('content3A')<0){collapse2=new animatedcollapse('c2', 1500, true)}">
<script type="text/javascript">var collapse2=new animatedcollapse("c2", 1500, true)</script>
</body></html>
Hopefully, this will give you all that you need to go from here.
Bookmarks