欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

script.aculo.us---Effect.Appear

程序员文章站 2022-06-17 16:07:24
...
Examples

Effect.Appear('id_of_element');
Effect.Appear('id_of_element', { duration: 3.0 });

Options

duration:1.0 (in seconds)
from:0.0-1.0 (percent of opacity to start)
to:0.0-1.0 (percent of opacity to end)


[b]Notes:[/b]

Works safely with most HTML elements, [b]except table rows, table bodies and table heads.[/b]

There is a problem with floating Elements in Safari.
If you need the div to be floated you can do it like this:

<a href="#" onclick="new Effect.Appear('apear-div');">Click to apear</a>

<div style="float: right">

<div id="apear-div" style="display: none;">
Only this div has to apear!
</div>

</div>


[url]http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear[/url]
相关标签: Safari HTML