By user-chosen position, I gather you mean the user chosen state of the DIV (whether expanded or collapsed)? If you've enabled the persistence feature, the user chosen state is already remembered, just not across pages. To make it across pages, find the line:
Code:
animatedcollapse.dotask(window, function(){animatedcollapse.setCookie(uniquepageid+"-"+thisobj.divId, thisobj.isExpanded)}, "unload")
and remove the part in red.
Also find the following line, and remove the part in red:
Code:
this.isExpanded=animatedcollapse.getCookie(uniquepageid+"-"+divId) //"yes" or "no", based on cookie value
Then find the following line, and add to it the part in green:
Code:
document.cookie = name+"="+value+";path=/"
That should make the persistence feature site wide. Just make sure to enable persistence, and also, to use the same ID (ie: id="mydiv") for the animated DIV that are the same across pages.
Bookmarks