How To Make Text Appear On A Webpage
|Computing : Web Sites|
You might have seen web pages with cool looking reveal features, whereby for instance you click a little arrow and some text pops underneath.
Or perhaps you've done quizzes online whereby again you click the link to see the answer appear.
How do you achieve this effect?
Well, with CSS it is easy. That's because each element on a page can have a visiblity set to hidden to visible.
Therefore when you load the page, simply set the style for an element containing an answer to 'hidden'.
Then when someone clicks the link, have it update the style of that element to 'visible' and there you have it - the text will appear.
Questions about DHTML: