View Full Version : Click & show more ...

10-29-2006, 06:33 PM
Click & show more ...

Don't know exactly how this is called ...

but I want the following:

when you click on 'SEE MORE' , I need my html page to show some text ... which can only be seen when you click that ... and also you need to be able to remove it again ...

I'm sure this is to be found on Google but I just don't know the right name what to look for

10-29-2006, 08:10 PM
You can use divs where you want the text to be:

First, place your function inside the head tag, inside the script tag:

function displayText()
document.getElementById('Text').style.visibility = "visible";

And then in the body part:

<a href="javascript: displayText()">Show more </a>
<div id="Text" style="visibility: hidden">
Text Text Text Text Text Text Text Text Text Text Text Text

10-29-2006, 08:13 PM
nvm already found a dhtml way

10-29-2006, 08:20 PM
You need to learn manners :/
If someone helps you, at least say thanks.

Oh well, I'm glad you found the solution.

10-29-2006, 08:23 PM
sorry didn't mean it bad ;)

anyway here's what I found: