8000 GitHub - pkdevboxy/jBox at v0.1.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ jBox Public
forked from StephanWagner/jBox

jBox is a powerful and flexible jQuery plugin, taking care of all your popup windows, tooltips, notices and more.

Notifications You must be signed in to change notification settings

pkdevboxy/jBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jBox

jBox is a powerful and flexible jQuery plugin, taking care of all your modal windows, tooltips, notices and more.

Demo: http://stephanwagner.me/jBox

Docs: http://stephanwagner.me/jBox/documentation

Tooltips

You can use jQuery selectors to add tooltips to elements:

$('.tooltip').jBox('Tooltip');

Now elements with class="tooltip" 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>

Notices

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

new jBox('Notice', {
	content: 'Hurray! A notice!'
});

Learn more

These three examples are very basic. The jBox library is quite powerful and offers a vast variety of options to customize appearance and behavior. Learn more in the documentation: http://stephanwagner.me/jBox/documentation

About

jBox is a powerful and flexible jQuery plugin, taking care of all your popup windows, tooltips, notices and more.

Resources

Readme

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.7%
  • CSS 16.4%
  • HTML 0.9%
0