thanks for pointing me in the right direction!
i wanted something a little different... i didn't want the new div contents to be displayed right away, so i came up with a little "hack" that would look something like this if you modified the example on the link above:
Code:
function test(){
document.getElementById('dog').innerHTML='<p>d<p>d<p>d<p>d<p>d<p>d<p>d<p>d<p>d'
document.getElementById('dog').style.height="500px"
collapse1.contentheight=500
collapse1.timelength = 0
collapse1.slideup()
collapse1.timelength = 1000;
collapse1.slidedown()
return false
}
basically it slides up the new content as soon as it is displayed with a timelength of 0 (so it happens instantly), and then readjusts the timelength and slides in down again normally.
thanks again for the help!
Bookmarks