微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

JS插件overlib用法实例详解

本文实例讲述了overlib用法分享给大家供大家参考,具体如下:

overLIB 是一个生成提示框与弹出菜单页面效果的一段非常优秀的JS代码

它可以简单的通过设置一些参数或命令来改变弹出页面的款式、皮肤与形状,不但如此,它还提供了非常简单的扩展功能,来足客户的不同需求。

overLIB 使用非常的简单。

一、在 标签添加

代码如下:
二、在标签添加
代码如下:
4.10以上的版本可省略此步

三、生成两种不同款式(popup与sticky)的弹出页面

rush:js;">

四、 命令与参数

popup

normal; letter-spacing: normal; color: rgb(0,0); word-spacing: 0px; -webkit-text-stroke-width: 0px"> display in the popup windowSEOverSEOver or onClickBoxBoxBoxBox's captionBoxBoxnes a picture to use instead of color for the inside of the popup.nes a picture to use instead of color for the border of the popup. NOTE: You will want to set bgcolor to "" or the color will show as well. NOTE: When having a Close link,netscape will re-render the table cells,making things look incorrectdisplay the "Close" text on stickies with a captionbrowsers status bararameter can be used instead of textdisplays the image given before the popup captionBox backgroundarameter commandarameter commanddisplayed in the popup windowmine if the popup should be to the left or right of the mouse.mine if the popup should be above or below the mouse.

overLIB 可以接受任意个命令和参数。格式如下:命令[,'命令参数']

rush:js;">

五、 overlib的一些使用示例

无标题文档

六、自定义overlib。overlib有三种方式可以实现自定义。

1、我们上面用过的通过输入不同命令来实现自定义。 2、修改overlib.js中的默认值来实现自定义 3、在引用的页面指定变量来实现自定义。

overlib点击此处

希望本文所述对大家JavaScript程序设计有所帮助。

原文地址:https://www.jb51.cc/js/50880.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


required