This can be done (using the original DD version of the script) by simply marking each content element that you want originally hidden individually with inline style. From the demo:
Code:
<div id="sc2" class="switchcontent" style="display:none;">
Java is completely different from JavaScript- the former is a compiled language while the later is a scripting language.
</div>
A nice touch would be that so (as is the original design of the script) these (now originally hidden) content elements can still be seen by non-javascript enabled browsers, use the noscript and script tags this way:
Code:
<noscript><div id="sc2" class="switchcontent"></noscript>
<script type="text/javascript">
document.write('<div id="sc2" class="switchcontent" style="display:none;">')
</script>
Java is completely different from JavaScript- the former is a compiled language while the later is a scripting language.
</div>
Bookmarks