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:
[url]http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear[/url]
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]