jBox

编程之家收集整理的这个编程导航主要介绍了jBox编程之家,现在分享给大家,也给大家做个参考。

jBox 介绍

jBox 是一个强大和灵活的 jQuery 插件,可用于所有的模态框、提示、通知以及更多场景. 

Tooltips

Create a new instance of jBox Tooltip and attach it to elements:

new jBox('Tooltip',{

attach: '.tooltip'

});

Now elements with will open tooltips:

<span class="tooltip" title="My first tooltip">Hover me!</span>

<span class="tooltip" title="My second tooltip">Hover me!</span>

Modal windows

You can set up modal windows the same way as tooltips. But most of times you'd want more variety,like a title or html content:new jBox('Modal',{width: 300,height: 200,attach: '#myModal',title: 'My Modal Window',content: '<i>Hello there!</i>'});<div id="myModal">Click me to open a modal window!</div>

Confirm windows

Confirm windows are modal windows which requires the user to confirm a click action on an element. Give an element the attribute data-confirm to attach it:

new jBox('Confirm',{

confirmButton: 'Do it!',

cancelButton: 'Nope'

});

<div onclick="alert('Yay! You did it!')" data-confirm="Do you really want to do this?">Click me!</div>

<a href="https://stephanwagner.me/jBox" data-confirm="Do you really want to leave this page?">Click me!</a>

Notices

A notice will open automatically and destroy itself after some time:

new jBox('Notice',{

content: 'Hurray! A notice!'

});

Images

To create image windows you only need following few lines:

new jBox('Image');

<a href="/image-large.jpg" data-jbox-image="gallery1" title="My image"><img src="/image.jpg" alt=""></a>

网站地址:https://stephanwagner.me/jBox

GitHub:https://github.com/StephanWagner/jBox

网站描述:模态框、提示、通知的 jQuery 插件

jBox

官方网站:https://stephanwagner.me/jBox

小编说

以上是编程之家为你收集整理的jBox全部内容。

如果觉得编程之家网站内容还不错,欢迎将编程之家推荐给好友。

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

相关推荐


jquery-labelauty,是一个基于 jQuery非常小巧的单选框复选框美化插件
jQuery.fontFlex,轻量级jQuery响应式字体插件
jQuery.Marquee,基于 jquery 实现的 marquee 无缝滚动插件
magnificent.js,一款响应式jQuery图片放大镜插件
Nestable,一个可拖拽的树结构表现插件
gridster.js,可拖放的多列网格布局
vegas,一个jQuery / Zepto幻灯片插件
jQuery-Knob,生成超酷的旋钮特效的jquery插件
Parallax.js,一款jQuery滚动视觉差插件
jquery.toast.js,一个向用户显示高度可定制的通知的插件
fakeLoader.js,十分炫酷的jQuery页面预加载Loading特效插件
OrgChart,一款简单实用的组织结构图表jQuery插件
jquery.danmu.js,jQuery弹幕插件
query-mousewheel,一个用于添加跨浏览器的鼠标滚轮支持的 jQuery 插件。
enlarge.js,一款支持移动手机的响应式jquery放大镜插件
jquery.fileDownload,实现ajax下载体验的jQuery插件
timeline.js,一款jQuery时间轴幻灯片插件
Uploadify,jQuery的一个上传插件( 支持批量上传)
cPager.js,基于jQuery的客服端分页插件
jTable,创建基于 AJAX 的增删改查表 jQuery 插件