What is this effect called?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
captcadaver
Forum Newbie
Posts: 17
Joined: Fri Jul 17, 2009 11:12 pm

What is this effect called?

Post by captcadaver »

Hi, I'm looking for a particular JavaScript effect that does the following:

If I click x, then one element per line will be rendered below.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: What is this effect called?

Post by pickle »

I'm not sure what you mean.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: What is this effect called?

Post by jackpf »

You mean like createElement() and appendChild()?
captcadaver
Forum Newbie
Posts: 17
Joined: Fri Jul 17, 2009 11:12 pm

Re: What is this effect called?

Post by captcadaver »

I'm pretty noob with JavaScript, so I apologize. I'm sure this is a MooTools or jQuery effect.

Let's say I've got a list of campus dormitories, organized like so:

Dormitories
-Illinois Street Residences
-Florida Avenue Residences
etc...

When the user first loads the page, all they see is:

Dormitories

When the user clicks "Dormitories", there is a downward sliding effect and each individual dormitory is revealed in descending order.

I have a second effect I'm wondering about. I am using my monitor to display a hypothetical web page with a box that contains information. I want to, every 30 seconds, change the information that appears in the box. I want to cycle between three sets of information. How can I do this?

Let me know if I'm still being vague. Thanks!!
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: What is this effect called?

Post by daedalus__ »

something that appears to be an animation is probably a jQuery effect.

you could load the data to display dorms a couple of different ways.

if you want to change something every 30 seconds you can use the setInterval() function
Post Reply