Given:
[div #core]
[div #id1 display=none]dynamic hidden content[/div] (using function below==> [div #id1 display=block]dynamic displayed content[/div]
[div #id2 display=none]dynamic hidden content[/div] …
[div #id3 display=none]dynamic hidden content[/div] …
…
[/div]
AND
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == ‘block’)
e.style.display = ‘none’;
else
e.style.display = ‘block’;
}
How can I make the scroll bar from the main div (#core) scale to the content within it? The scrollbar doesn’t change in size regardless of the number of divs within in it that have had their display property changed from none to block.
See: [url]http://www.artfuladvection.com/?category_name=music
i’ve tried all sorts of core.style.overflow-y settings, but none seem to be the winning ticket. This page shows it can be done…[url]http://www.dyn-web.com/code/scroll/refresh.php
Thanks!