C# Class Castle.MonoRail.Framework.Helpers.Effects2Helper

Inheritance: ScriptaculousHelper
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Appear ( String elementId ) : String

Make an element appear. If the element was previously set to display:none; inside the style attribute of the element, the effect will automatically show the element.

Microsoft Internet Explorer can only set opacity on elements that have a 'layout'. To let an element have a layout, you must set some CSS positional properties, like 'width' or 'height'.

BlindDown ( String elementId ) : String

This pair of effects simulates a window blind, where the contents of the affected elements stay in place.

Works safely with most HTML block elements (like DIV and LI), except table rows, table bodies and table heads.

BlindUp ( String elementId ) : String

This pair of effects simulates a window blind, where the contents of the affected elements stay in place.

Works safely with most HTML block elements (like DIV and LI), except table rows, table bodies and table heads.

DropOut ( String elementId ) : String

Makes the element drop and fade out at the same time.

Works safely with most HTML block elements (like DIV and LI).

Fade ( String elementId ) : String

Makes an element fade away and takes it out of the document flow at the end of the effect by setting the CSS display property to false.

Works safely with most HTML block elements (like DIV and LI). Microsoft Internet Explorer can only set opacity on elements that have a 'layout'. To let an element have a layout, you must set some CSS positional properties, like 'width' or 'height'.

Puff ( String elementId ) : String

Gives the illusion of the element puffing away (like a in a cloud of smoke).

Works safely with most HTML block elements (like DIV and LI).

Shake ( String elementId ) : String

Moves the element slightly to the left, then to the right, repeatedly.

Works safely with most HTML block elements (like DIV and LI).

SlideDown ( String elementId ) : String

This pair of effects simulates a window blind, where the contents of the affected elements scroll up and down accordingly.

You must include a second DIV element, wrapping the contents of the outer DIV. So, if you call new Effect.SlideDown('x'), your element must look like this: <div id="x"><div>contents</div></div> Because of a bug in Internet Explorer 6 (overflow not correctly hidden), an additional wrapper div is needed if you want to use these effects on absolutely positionend elements (wrapper is the absolutely positioned element, x has position:relative; set; ): <div id="wrapper"> <div id="x"><div>contents</div></div> </div> Works only on block elements.

SlideUp ( String elementId ) : String

This pair of effects simulates a window blind, where the contents of the affected elements scroll up and down accordingly.

You must include a second DIV element, wrapping the contents of the outer DIV. So, if you call new Effect.SlideDown('x'), your element must look like this: <div id="x"><div>contents</div></div> Because of a bug in Internet Explorer 6 (overflow not correctly hidden), an additional wrapper div is needed if you want to use these effects on absolutely positionend elements (wrapper is the absolutely positioned element, x has position:relative; set; ): <div id="wrapper"> <div id="x"><div>contents</div></div> </div> Works only on block elements.

SwitchOff ( String elementId ) : String

Gives the illusion of a TV-style switch off.

Works safely with most HTML block elements (like DIV and LI).

Method Details

Appear() public method

Make an element appear. If the element was previously set to display:none; inside the style attribute of the element, the effect will automatically show the element.
Microsoft Internet Explorer can only set opacity on elements that have a 'layout'. To let an element have a layout, you must set some CSS positional properties, like 'width' or 'height'.
public Appear ( String elementId ) : String
elementId String
return String

BlindDown() public method

This pair of effects simulates a window blind, where the contents of the affected elements stay in place.
Works safely with most HTML block elements (like DIV and LI), except table rows, table bodies and table heads.
public BlindDown ( String elementId ) : String
elementId String
return String

BlindUp() public method

This pair of effects simulates a window blind, where the contents of the affected elements stay in place.
Works safely with most HTML block elements (like DIV and LI), except table rows, table bodies and table heads.
public BlindUp ( String elementId ) : String
elementId String
return String

DropOut() public method

Makes the element drop and fade out at the same time.
Works safely with most HTML block elements (like DIV and LI).
public DropOut ( String elementId ) : String
elementId String
return String

Fade() public method

Makes an element fade away and takes it out of the document flow at the end of the effect by setting the CSS display property to false.
Works safely with most HTML block elements (like DIV and LI). Microsoft Internet Explorer can only set opacity on elements that have a 'layout'. To let an element have a layout, you must set some CSS positional properties, like 'width' or 'height'.
public Fade ( String elementId ) : String
elementId String
return String

Puff() public method

Gives the illusion of the element puffing away (like a in a cloud of smoke).
Works safely with most HTML block elements (like DIV and LI).
public Puff ( String elementId ) : String
elementId String
return String

Shake() public method

Moves the element slightly to the left, then to the right, repeatedly.
Works safely with most HTML block elements (like DIV and LI).
public Shake ( String elementId ) : String
elementId String
return String

SlideDown() public method

This pair of effects simulates a window blind, where the contents of the affected elements scroll up and down accordingly.
You must include a second DIV element, wrapping the contents of the outer DIV. So, if you call new Effect.SlideDown('x'), your element must look like this: <div id="x"><div>contents</div></div> Because of a bug in Internet Explorer 6 (overflow not correctly hidden), an additional wrapper div is needed if you want to use these effects on absolutely positionend elements (wrapper is the absolutely positioned element, x has position:relative; set; ): <div id="wrapper"> <div id="x"><div>contents</div></div> </div> Works only on block elements.
public SlideDown ( String elementId ) : String
elementId String
return String

SlideUp() public method

This pair of effects simulates a window blind, where the contents of the affected elements scroll up and down accordingly.
You must include a second DIV element, wrapping the contents of the outer DIV. So, if you call new Effect.SlideDown('x'), your element must look like this: <div id="x"><div>contents</div></div> Because of a bug in Internet Explorer 6 (overflow not correctly hidden), an additional wrapper div is needed if you want to use these effects on absolutely positionend elements (wrapper is the absolutely positioned element, x has position:relative; set; ): <div id="wrapper"> <div id="x"><div>contents</div></div> </div> Works only on block elements.
public SlideUp ( String elementId ) : String
elementId String
return String

SwitchOff() public method

Gives the illusion of a TV-style switch off.
Works safely with most HTML block elements (like DIV and LI).
public SwitchOff ( String elementId ) : String
elementId String
return String