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程序设计有所帮助。

相关文章

前言 做过web项目开发的人对layer弹层组件肯定不陌生,作为l...
前言 前端表单校验是过滤无效数据、假数据、有毒数据的第一步...
前言 图片上传是web项目常见的需求,我基于之前的博客的代码...
前言 导出Excel文件这个功能,通常都是在后端实现返回前端一...
前言 众所周知,js是单线程的,从上往下,从左往右依次执行,...
前言 项目开发中,我们可能会碰到这样的需求:select标签,禁...
required