Hide and show content

  • Dan030981
  • Novice
  • Novice
  • User avatar
  • Posts: 23
  • Loc: Mass

Post 3+ Months Ago

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?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9128
  • Loc: Seattle, WA

Post 3+ Months Ago

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:


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:


Hope that helps :)

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 53 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

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.