...

View Full Version : Click & show more ...



T-Bounce
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

BarrMan
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:

<head>
<script>
function displayText()
{
document.getElementById('Text').style.visibility = "visible";
}
</script>
</head>

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
</div>

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

BarrMan
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.

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

anyway here's what I found:

http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum