Can you post a link to the page?
Can you post a link to the page?
http://www.waterinstitute.ufl.edu/copyo***enda2.asp
I've only added the code to the first day's sessions
the stars are "f" "a" "g" I guess they got censored out LOL
Last edited by MaxxMills84; October 5th, 2009 at 12:58 PM. Reason: link
Change the initList function to this:-
Code:function initList() { alert(divList.length); for(var i=0;i<divList.length;i++) { animatedcollapse.addDiv(divList[i],'fade=0'); } animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted //$: Access to jQuery //divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID //state: "block" or "none", depending on state } animatedcollapse.init() }
well it worked the way I mentioned earlier with just initializing about 100 divs.
I'll give your code a shot but since the sessions won't be unlimited for a 3-day conference, I might just go ahead with that method.
Thanks for all your help!
new problem:
when inserted the page in an iframe of an html page, the java stopped working again.![]()
Could you post a link to the page containing the frame?
It's just easier to view the code in situ.
No problem:
UF Water Institute
Notice that if you go to the original page (linked above) everything works normally.
My guess is the Javascript src is using a relative URL somehow.
Try changing this:-
to:-Code:<script type="text/javascript" src="animatedcollapse.js">
Code:<script type="text/javascript" src="/animatedcollapse.js">
Tried, and it still doesn't work.
Just a guess but try either
<script type="text/javascript" src="../animatedcollapse.js">
or the full URL to the javascript.
Wolffy
.-- ----- ..-. ..-. -.--
Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Void where prohibited by law. Not valid in California. Your mileage may vary.
Bookmarks