Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display hidden content (not sure what to title this)

Status
Not open for further replies.

nofx1728

Technical User
Jan 26, 2006
65
US
Sorry for the message title, I have no clue what the term would be for this. I'm using Dreamweaver 8. I'm making an about page for a client. I want to have their mission statements displayed when you first open the page, there are 5 statements. When you click on each statement I would like the text that describes their mission in further detail to be displayed underneath it. So lets say I open the about page, and I click on the 1st mission listed - build effective webpages. When I click on that, I want right underneath it to say something like - go to forums because they give you great ideas and support. With the remaining 4 mission statements being pushed down to allow room for the text to appear. Does anyone know how to accomplish that, know a tutorial where i can read about, or know the term so I can search for information on it?

Thanks,

nofx1728
 
This is a JavaScript based thing, I used to have the same thing on one of my sites.

Basicly you have all of your <divs> with the content in them set to be hidden, then you have a javascript that changes the property from hidden to visable.

I'm affriad i cant give you any more information, but if you keep hunting for JavaScript (Not JAVA) then you'll find somthing to suite your needs.

Rob
 
YOu could use a different layer to contain each piece of information, each with a different name. Set them initially to hidden. Then, using the behaviours panel (I use MX2004, and it's on the right hand side of the screen) add behaviours for your links, so that when clicked, each respective layer is displayed, and the others hidden. Hope that makes sense to you.

Dunno how to make the other text move around it though...

Hope what I've provided helps! =)
 
Thanks for the tips, I'll look into it.

nofx1728
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top