位置: 编程技术 - 正文

JS插件overlib用法实例详解(js中overlay)

编辑:rootadmin

推荐整理分享JS插件overlib用法实例详解(js中overlay),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:js office插件,js插件大全,js over flow,js over flow,js插件使用教程,js over flow,js office插件,js插件大全,内容如对您有帮助,希望把文章链接给更多的朋友!

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

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

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

overLIB 使用非常的简单。

一、在<head></head> 标签内添加:二、在<body></body>标签内添加: 4.以上的版本可省略此步

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

JS插件overlib用法实例详解(js中overlay)

四、 命令与参数

popup Attribute Name Type Required Default Description text string Yes n/a the text/html to display in the popup window trigger string No onMouseOver What is used to trigger the popup window. Can be one of onMouseOver or onClick sticky boolean No false Makes the popup stick around until closed caption string No n/a sets the caption to title fgcolor string No n/a color of the inside of the popup box bgcolor string No n/a color of the border of the popup box textcolor string No n/a sets the color of the text inside the box capcolor string No n/a sets color of the box's caption closecolor string No n/a sets the color of the close text textfont string No n/a sets the font to be used by the main text captionfont string No n/a sets the font of the caption closefont string No n/a sets the font for the "Close" text textsize string No n/a sets the size of the main text's font captionsize string No n/a sets the size of the caption's font closesize string No n/a sets the size of the "Close" text's font width integer No n/a sets the width of the box height integer No n/a sets the height of the box left boolean No false makes the popups go to the left of the mouse right boolean No false makes the popups go to the right of the mouse center boolean No false makes the popups go to the center of the mouse above boolean No false makes the popups go above the mouse. NOTE: only possible when height has been set below boolean No false makes the popups go below the mouse border integer No n/a makes the border of the popups thicker or thinner offsetx integer No n/a how far away from the pointer the popup will show up, horizontally offsety integer No n/a how far away from the pointer the popup will show up, vertically fgbackground url to image No n/a defines a picture to use instead of color for the inside of the popup. bgbackground url to image No n/a defines 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 incorrect closetext string No n/a sets the "Close" text to something else noclose boolean No n/a does not display the "Close" text on stickies with a caption status string No n/a sets the text in the browsers status bar autostatus boolean No n/a sets the status bar's text to the popup's text. NOTE: overrides status setting autostatuscap string No n/a sets the status bar's text to the caption's text. NOTE: overrides status and autostatus settings inarray integer No n/a tells overLib to read text from this index in the ol_text array, located in overlib.js. This parameter can be used instead of text caparray integer No n/a tells overLib to read the caption from this index in the ol_caps array capicon url No n/a displays the image given before the popup caption snapx integer No n/a snaps the popup to an even position in a horizontal grid snapy integer No n/a snaps the popup to an even position in a vertical grid fixx integer No n/a locks the popups horizontal position Note: overrides all other horizontal placement fixy integer No n/a locks the popups vertical position Note: overrides all other vertical placement background url No n/a sets image to be used instead of table box background padx integer,integer No n/a pads the background image with horizontal whitespace for text placement. Note: this is a two parameter command pady integer,integer No n/a pads the background image with vertical whitespace for text placement. Note: this is a two parameter command fullhtml boolean No n/a allows you to control the html over a background picture completely. The html code is expected in the "text" attribute frame string No n/a controls popups in a different frame. See the overlib page for more info on this function timeout string No n/a calls the specified javascript function and takes the return value as the text that should be displayed in the popup window delay integer No n/a makes that popup behave like a tooltip. It will popup only after this delay in milliseconds hauto boolean No n/a automatically determine if the popup should be to the left or right of the mouse. vauto boolean No n/a automatically determine if the popup should be above or below the mouse.

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

五、 overlib的一些使用示例

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

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

overlib点击此处本站下载。

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

JavaScript动态设置div的样式的方法 有时候需要根据需要动态设置div的样式,当然对于稍有经验的javascript开发者来说,这一切都是那么的简单,但是对于初学者或者说没有相关经验的开发

Knockout自定义绑定创建方法 概述除了上一篇列出的KO内置的绑定类型(如value、text等),你也可以创建自定义绑定。注册你的bindinghandlerko.bindingHandlers.yourBindingName={init:function(element,

JavaScript位置与大小(1)之正确理解和运用与尺寸大小相关的DOM属性 在web开发中,不可避免遇到要计算元素大小以及位置的问题,解决这类问题的方法是利用DOM提供的一些API结合兼容性处理来,所有内容大概分3篇左右的

标签: js中overlay

本文链接地址:https://www.jiuchutong.com/biancheng/385562.html 转载请保留说明!

上一篇:如何解决easyui自定义标签 datagrid edit combobox 手动输入保存不上(easyui-dialog)

下一篇:JavaScript动态设置div的样式的方法(js动态设置css样式)

  • 转让金融商品需要缴纳增值税吗
  • 一般纳税人季报怎么申报
  • 一般纳税人财务要求
  • 外贸企业进项税额
  • 小规模纳税人不开票收入怎么报增值税
  • 小规模减免增值税要交企业所得税吗
  • 公允价值变动借方是增加还是减少
  • 所得税汇算清缴分录怎么做
  • 农业企业增值税纳税实务实训心得
  • 个人所得税申报错误如何更正申报
  • 其他应收款用什么表示
  • 非同一控制下用什么法
  • 不动产税征收标准
  • 公司对项目管理方式
  • 个人取得投资收益是否缴纳个税
  • 营业外收入个税手续费返还
  • 网络招聘合同
  • 虚开增值税发票具体操作是怎样的?
  • 积分现金兑换比例怎样计算
  • 印花税的购销合同改成买卖合同了吗?
  • 城市垃圾处理项目
  • 原材料入库如何分类
  • 已抵扣的增值税专票如何冲红
  • 华为手机哪一款好用性价比高
  • iphone怎么格式化掉所有内容和设置
  • 事业单位政府预算
  • linux系统查询mac地址命令
  • 一般纳税人购进农产品如何抵扣进项税额
  • php响应时间
  • php extract函数
  • 企业所得税中的其他业务收入包括
  • 人民币账户购汇支付
  • 社保代扣代缴会计分录怎么做
  • 马拉喀什的历史背景
  • thinkphp教程
  • 施工方可以向建设单位借款么
  • 存货捐赠视同销售的会计分录怎么做?
  • php正则替换函数怎么写
  • php图片上传代码详解
  • magento后台无法登录解决办法的两种方法
  • 股东分红的会计处理方法
  • 宝塔运行go
  • 企业收到企业借款需要交税
  • 长期借款主要包括哪些
  • 认缴出资和注册资本
  • php访问mysql数据库函数
  • 6%税点是什么意思
  • 印花税技术服务合同包括哪些
  • 春节法定假加班费政策依据
  • 增值税发票税率计算公式
  • 认证固定资产发票如何入账
  • 航天信息全额抵扣分录
  • 发票要不回来怎么办
  • 收回投标保证金 建立台账
  • sqlserver怎么用sql创建表
  • 从硬盘安装系统
  • 不需要秘密的wifi安全吗
  • win10激活后是什么样子
  • ubuntu 无法正常启动
  • linux gpfs
  • win7系统玩红色警戒怎么全屏设置
  • 笔记本触摸屏无法使用了
  • linux文件权限的设置与修改
  • win7系统纯净版64位无法修改窗口颜色怎么办?Win7窗口颜色修改详细步骤
  • windows7 sp1升级包
  • win10怎么设置扩展屏
  • cocos2djs
  • jQuery+PHP+MySQL二级联动下拉菜单实例讲解
  • sed 处理多行
  • 使用ssh登录远程服务器有两种方法
  • jquery点击跳转页面
  • javascript的函数调用
  • locust框架
  • 12366纳税服务热线存在的问题
  • 如何缴纳地税工伤保险
  • 什么是增值税免抵税额
  • 上年汇算清缴调减的职工薪酬今年需要调增吗
  • 停车场收费需要什么手续
  • 2020各省旅游
  • 消费税的纳税人是买方还是卖方
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设