I have seen somwhere web-site containing the text only with following
structure:
Paragraph-1
Paragraph-2
Paragraph-3
...
on-mouse click on Parahraph-N it was expanded as:
Paragraph-1
Paragraph-2
text21
text22
text23
...
Paragraph-3
could somebody give me advice how to do it ?
thanks, vlastimil
marss - 31 Jan 2007 09:58 GMT
> I have seen somwhere web-site containing the text only with following
> structure:
[quoted text clipped - 15 lines]
>
> could somebody give me advice how to do it ?
Put the text you want to hide/show in a separate element(for example
"div") and change its style's property display between "none" and
"block".
Example.
<p
onclick="document.getElementById('div2').style.display='block'">Paragraph-2</
p>
<div id="div2" style="display:none">text21 ... </div>
Also you can view source of the page where you see functionality that
awake your interest. :)