Hide and show content

  • Dan030981
  • Novice
  • Novice
  • User avatar
  • Joined: Oct 16, 2011
  • Posts: 18
  • Loc: Mass
  • Status: Offline

Post January 26th, 2012, 7:32 am

I have this code that I'm working on that show members upcoming birthdays and birthdays. The members icon will appear in a 200x200 square box. My question is, is there an example or demo somewherre where you can hide content until a action is proformed, in this case members birthdays, then the content will appear when action is proformed?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 26th, 2012, 7:32 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post January 26th, 2012, 10:21 am

If I were you I would probably use some sort of JavaScript library such as jQuery to make this really easy. You could just put all of that content in a div and then use a bit of jQuery to make it so that when a button or certain action is performed it will use the .show() method on your hidden birthday div:

http://api.jquery.com/show/

With that method you could make it immediately appear, or you can even apply a few transition effects such as fading or sliding it in. You may also want to see the hide method:

http://api.jquery.com/hide/

Hope that helps :)
Ozzu Hosting - Want your website on a fast server like Ozzu?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 270 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.