Jump to content

Question about hiding and expanding


gregcool

Recommended Posts

I am not quite sure how to word what I am looking for in order to find it via searches.

I am creating a page for my clan on Halo 2. For the members page, I would like to try to show their pic/name, then when they click on the pic, I want to expand out their profile info in the same general area (don't want to open a new page, but want to be able to hide and expand their profiles). Could anyone give me any recommendations on this, or maybe some different ideas. Really just need to know what to search for.

Thanks

Link to comment
https://forums.phpfreaks.com/topic/4347-question-about-hiding-and-expanding/
Share on other sites

well, you'd need to use javascript for that, so i'll move this topic to that forum as you'll probably get some more accurate responses for what you're after there.

basically, what you'll need to do is echo in the markup the entire profile for each user, but HIDE the div containing their profile initially using CSS. then, when they click on a corresponding image, simply change that div back to being visible. the tricky part is keeping track of which one is open so they can then click on the image again to hide the one that's open...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.