Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / January 2007



Tip: Looking for answers? Try searching our database.

Simple Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vlastimil - 31 Jan 2007 09:10 GMT
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. :)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.