David T. Ashley wrote:
"Randy Webb" <Hi************@aol.comwrote in message
news:o_********************@telcove.net...
>Set that state in the CSS....
Um .... I actually don't have a CSS. It is all done inline for simplicity.
???
Um... add one (inline even)? For example:
<style type="text/css" media="screen">
/* styles */
</style>
1. Firstly, drop the TABLE in lieu of a nice semantic UL (or something
else, unless you are using tabular data). You could then apply:
ul li { display: none; }
This would effectively hide all the LIs. Then your script could:
var LIs = document.getElementsByTagName('li');
for (var i = 0, l = LIs.length; i < l; i++) { LIs.style.display = 'block'; }
2. You could then just have a link above the UL that calls your
functions, or perhaps, possibly better, use a generic style to hide all
the LIs, and have a class:
ul li.show { display: block; }
Then your UL could look like this:
<ul>
<li class="show">Click Me</li>
<li>stuff 1</li>
<li>stuff 2</li>
<li>stuff 3</li>
</ul>
There is probably fifty more ways to do this, you are limited only by
your creativity I suppose.
--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.