09 Jul2010

TAGS:

Tags: , ,

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! http://plugins.jquery.com/project/cookie


How to use:
$(“#myElement”).illuminate();

The options:
overlayColor
This is used for the color of the overlay background – Default: #000
overlayOpacity
This is used to determine the opacity of the overlay – Default: 0.4
overlayTimeOut
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
overlayOpen
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
overlayClose
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
itemPadding
This is used to add some space between the element and the border while you hover the element – Default: 5
balloonWidth
This is used for the with (in pixels) of the info balloon – Default: 300
balloonColor
The color used for the text inside the info balloon – Default: #06c
balloonBackground
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!

Developed with jQuery version: 1.4.2

Example / Download

SHARE:

| More

Post discussion

5 Responses to “jQuery plugin: illuminate with info balloon”

  • Avinash 26 July 2010

    Awesome !!

    Thanks for sharing !!

  • tinny 1 October 2010

    Hi, thank for sharing this.
    How can I “illuminate” an element on page load? I would like to start the highlighting on document ready without overing or clicking onto the element

  • tinny 1 October 2010

    Doing this

    $(document).ready(function() {
    $(“#element”).illuminate();
    $(“#element_in”).click();
    });

    Does not load enterely the div’s content

  • iSenne 29 October 2010

    @tinny

    You can also use the .trigger() function in jQuery

    http://api.jquery.com/trigger/

    $(document).ready(function() {
    $(“#element”).illuminate();
    $(“#element_in”).trigger(‘click’);
    });

  • 25 Cool jQuery Plugins and Effects For Your Website 5 February 2011

    [...] 09. Illuminate [...]

Leave a comment

I am not responsible

You can probably see that I not do write good englisch well very. And I really don’t care much about it. So I am really sorry if you don’t like it. But please, if you are going to comment on my grammer, e-mail me instead of leaving very anoying comments!

Looking for something?

Try to find it below here