I think this might help you
Hiding HTML content from view using CSS
In order to pull regular HTML on our page out of normalcy and shown based on a more selective process that is our script, we need to hide them from view first. As mentioned, the CSS attribute display:none will do the job nicely, but there's also the NS4 compatibility issue. You see, NS4 sends all bearers of this attribute on a one way trip to the Black Hole. To make sure our content is backwards compatible, the simplest solution is simply to dynamically write out the style sheet:
<script type="text/javascript">
if (document.all || document.getElementById){ //if IE4 or NS6+
document.write('<style type="text/css">')
document.write('.dyncontent{display:none;}')
document.write('</style>')
}
</script>
<p class="dyncontent">This content is hidden from view initially</p>
<p class="dyncontent">This content is hidden from view initially as well</p>
<p >This content is not hidden from view.</p>
Notice how we used the "class" attribute of CSS to identify the chosen content and apply styling to them. This allows for a more generic way of "tagging" content rather then using the ID attribute. In legacy browsers such as NS4, no content will be hidden at all, so these users can at least read your page.
Having hidden the content, what's needed now is a way in DHTML to create a custom collection out of them. With such a collection the sky becomes the limit on what we can do with it, such as displaying our content one at a time like in a scroller.
And if you want to physically hide stuff this would be good too!
Hiding Content
One of the re-occurring themes that appear on design lists is 'hiding content', or making one's code invisible. Most of the solutions just don't work. The internet is not about hiding stuff. But in the interest of fairness I can offer a proven method of hiding content.
Below is how to do it.
I can help you!
If you are serious about hiding contents follow the 6 point program below.
1. Take it down from the publicly available internet location.
2. Turn off the computer with the original files.
3. Remove the harddrive.
4. Destroy the harddrive by using a 18 LB sledge hammer.
5. Bury the remains in a land fill.
6. Have hypnosis to remove any traces of memory of the above.
These 6 steps which save you 6 steps such as you find in drug and alcohol 12 step programs are the only sure way to hide contents such as you would find on the portion of the internet accessible through the use of a browser.
If you want to hide things the web is not the place for you.