Submit your widget

jQuery illuminate with info balloon

Created 13 years ago   Views 10124   downloads 1799    Author isenne
jQuery illuminate with info balloon
View DemoDownload
Share |

Illuminate – jQuery plugin

This plugin is used to highlight elements on a web page.

What it does:
When using the plugin you can highlight any kind of element on the webpage. You could use it for demo purpose. When you highlight an element, there is also an option to show a text balloon. It will appear next to the element. This text balloon can contain text and HTML!

NOTE: To use this plugin properly you need to download the “jQuery.cookie” plugin!

How to use:



The options:
This is used for the color of the overlay background – Default: #000
This is used to determine the opacity of the overlay – Default: 0.4
The time (in milli seconds) before the overlay opens after you hover an element. And the time before the overlay disappears after you exit the element – Default: 600
The options to open the overlay. “hover”: When the mouse hovers the object the overlay wil open. “click”: When you click on an object the overlay will open. “both”: You can click and hover an object to open the overlay – Default: both
The options to close the overlay. “hover”: When the mouse leaves the object the overlay wil close. “click”: When you click on the close button the overlay will close. “both”: You can click on the close button or leave the object to close the overlay – Default: both
This is used to add some space between the element and the border while you hover the element – Default: 5
This is used for the with (in pixels) of the info balloon – Default: 300
The color used for the text inside the info balloon – Default: #06c
The background color inside the info balloon – Default: #e5effa

Add extra info balloon:
If you want the “Balloon” to appear, you need to add a div element width the class “balloonText” inside the element you want to illuminate. What ever you put in that div will appear inside the balloon. You can add text and html inside a balloon.

Add a status button:
It is possible for the user to turn the illuminate function off (or on). You only need a checkbox with the id “illuminateStatus”. You can add the checkbox anywhere you like.

Add a status pop up (splash page):
If a user enters your site without a cookie, you can ask the user to turn on or off the demo function. If you want this splash up, add a div (anywhere on the page) and give it the id “illuminateCookiePopUp”. The text you put inside that div is used for the pup up.
NOTE: The “on” and “off” buttons inside the pop up are images. You can change them, or even edit the CSS!