Good one, RndMe.
You could also do it a bit more restrictive, if that mattered:
Code:
<style type="text/css">
.hideAll .hide {
display: none;
}
</style>
...
<div id="holder">
<div class="hide">...</div>
<div class="hide">...</div>
<div class="hide">...</div>
</div>
<a href="#" onclick="document.getElementById('holder').className='hideAll';return false;">Hide all</a>
<a href="#" onclick="document.getElementById('holder').className='';return false;">Show all</a>
You might do it this way if you had multiple "holder" divs where you wanted this kind of control and/or if your <body> needed to be able to change class names for other reasons.