Expanding/Collapsing Sections
You see this effect on lots of different sites. An excellent example of this effect can be found on http://fanball.com/ if you scroll down a little and look at their "Newsbreakers" section. But I'll explain this with an example most of you are more familiar with - Gmail. When you're viewing a message thread in Gmail, all messages other than the latest start off collapsed, and by simply clicking on the subject header the message expands to show the message body without having to reload the whole page.
That's the general effect I'm talking about but just in case it matters, my project doesn't involve email - just simple text and graphics. I want to have sort of a user profile of the month and as each month passes, have previously highlighted profiles listed below in collaped, compacted form. A clickable "region" like Gmail uses would be fine but I'm also fine with a simple text link that says "expand" or "more".
So how is this expand/collapse effect accomplished? Does anybody have any links to tutorials-for-idiots on this effect?
Thanks in advance
P.S. If anybody wants a Gmail account just send me a PM.
Suzanne posted this at 17:55 — 25th September 2004.
She has: 5,507 posts
Joined: Feb 2000
Mike, did you get this sorted out?
It's JavaScript that shows and hides the div -- I used to use it on my personal site. Let us know if you still need help.
S
fifeclub posted this at 02:30 — 27th September 2004.
He has: 688 posts
Joined: Feb 2001
No, not yet. I'm not in a hurry but I'd like to use this technique for a "Past User Profile of the month" page. Ideally I'd like to make it so you can see the basic "header" of various profiles (name and such) and then if you're interested in seeing more of that one you can click to instantly expand it. My guess is that it's one div on the always-visable top part and another div on the hidden bottom?
sofy60 posted this at 05:38 — 27th September 2004.
They have: 16 posts
Joined: Jan 2004
ive had this as a java issue as well
fifeclub posted this at 18:32 — 29th September 2004.
He has: 688 posts
Joined: Feb 2001
Um...... so other than the word Java, can anybody point me in the right direction? Any particular scripts or tutorials or specific functions I should look up?
fifeclub posted this at 19:11 — 29th September 2004.
He has: 688 posts
Joined: Feb 2001
It took like 15 pages of google results but I found this little gem.
http://www.flooble.com/scripts/expand.php
I haven't tried it on my site yet but it looks like with a little css customization this should work fine. Thanks y'all.
Suzanne posted this at 21:25 — 29th September 2004.
She has: 5,507 posts
Joined: Feb 2000
Excellent! If you have problems installing it, give a shout. It's pretty simple though.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.