Set it to 100px, and add display:none; to the inline style.


From the wiki (http://wiki.script.aculo.us/scriptaculous/show/Effect.BlindDown ):

Also, if you would like the block hidden when someone first lands on your page, you must use the "display: none" property within the style attribute of the div/block tag, and not in the CSS class for the div. For example:


<div style="display: none" id = "id_of_element">
Blind content
</div>

	

and not:


#id_of_element{
display: none;
etc...
}

See other CombinationEffects

-Jerod


On 4/27/06, Whitcraft, Jon <[EMAIL PROTECTED]> wrote:

I have a div that is hidden on my page.  When I mouse over an image I want the div to scroll down to 100px tall.  I can get it to work when the div is initially shown on the page at 100px tall but when I start it out at 0px tall it doesn't do anything and the only code that you can pass is percentages not pixels to the effect.  Is there a way to tell it that I want it to go to 100px  instead of 100% so that way I can start out by having it at 0px tall.

 

Thanks,

 

Jon Whitcraft
Indianapolis Motor Speedway
[EMAIL PROTECTED]

Phone: (317) 492-8623 :: Fax: (317) 492-6419

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Martinez, Andrew
Sent: Thursday, April 27, 2006 2:51 PM

Subject: RE: [Rails-spinoffs] effect.SlideDown question

 

Just to clarify:

 

            Are you trying to make a DIV element that is hidden, slide down 100px and then show when it finishes moving? Or are you trying to have a DIV element slide down 100px and fade into visibility while moving?

 

…can you take the time to actually re-read what you type?

 

-Andrew Martinez

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Whitcraft, Jon
Sent: Thursday, April 27, 2006 2:46 PM
To: [email protected]
Subject: [Rails-spinoffs] effect.SlideDown question

 

Hello,

 

I want to have my box that I'm sliding down hidden when I start and then slidedown to 100px. What is the best way to do this?  I don't see anything on the wiki about it.

 

Thanks,

 

Jon Whitcraft
Indianapolis Motor Speedway
[EMAIL PROTECTED]

Phone: (317) 492-8623 :: Fax: (317) 492-6419

 

********************

********************

This E-mail (and attachments) may contain confidential/privileged information intended only for the named addressee(s). If you are not an intended recipient, do not read, copy, disseminate or take any action based on the content of this E-mail. Please notify the sender by reply E-mail and erase this E-mail from your system. Your assistance is appreciated. E-mail transmission may not be secure or error-free. The company is not responsible for any loss/damage arising from any virus transmitted.

********************

********************


_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to