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
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...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.