Freeow! 一款基于jquery的信息警示或提示的插件 。您可以自定义的Freeow的外观和动画 !每次出现一个消息框,你可以改变其它选项,例如消息框是否自动隐身等。
调用方式
// Simple
$("#freeow").freeow("My Title", "Here's a message");
// With options
$("#freeow").freeow("Another Title", "One more message", {
classes: ["gray", "error"],
autoHide: false
});
| Property | Type | Description | Default |
|---|---|---|---|
| autoHide |
bool |
If true (the default), the message box will dismiss after autoHideDelay unless the user hovers over the message. |
true |
| autoHideDelay |
int |
Time in milliseconds the message box will display before auto hidding. | 3000 |
| classes |
array |
Array of CSS class names to apply to the message box. | [] |
| startStyle |
object or null |
Object of styles (for .css() or .animate()) to set the style for the message box before it is shown. If null, hideStyle is used. |
null |
| showStyle |
object |
Object of styles (for .css() or .animate()) to set the style for the message when it is visible. |
{opacity: 1.0} |
| showDuration |
int |
Time in milliseconds to animate from startStyle to showStyle. | 250 |
| hideStyle |
object |
Object of styles (for .css() or .animate()) to set the style for the message when it is hidden. |
{opacity: 0.0} |
| hideDuration |
int |
Time in milliseconds to animate from showStyle to hideStyle. | 500 |
| Property | Arguments | Returns | Description |
|---|---|---|---|
| onClick |
event |
Event handler bound to the click event of the message box. The default onClick function calls the Freeow instance's hide() method. |
|
| onHover |
event |
Event handler bound to the hover event of the message box. The default onHover function calls disables auto hiding. | |
| template |
title, message |
DOM element | Function used to construct the message box. The function should accept two string arguments: the title and message. It should return a DOM element. |
☉如果您发现本文件已经失效不能下载,请联系站长修正!
☉如果您下载的文件出现解压不了或文件受损等情况,请选择其他下载点重新下载。
☉下载本站资源,如果服务器暂不能下载请过一段时间重试!
☉有小部分资源需要解压密码,请输入:261z.com。
☉本站提供的所有资源仅供学习研究与参考,请勿用于商业用途。