C# Класс Castle.MonoRail.Framework.Helpers.Effects2Helper

Наследование: ScriptaculousHelper
Показать файл Открыть проект

Открытые методы

Метод Описание
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).

Описание методов

Appear() публичный Метод

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
Результат String

BlindDown() публичный Метод

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
Результат String

BlindUp() публичный Метод

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
Результат String

DropOut() публичный Метод

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
Результат String

Fade() публичный Метод

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
Результат String

Puff() публичный Метод

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
Результат String

Shake() публичный Метод

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
Результат String

SlideDown() публичный Метод

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
Результат String

SlideUp() публичный Метод

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
Результат String

SwitchOff() публичный Метод

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
Результат String