in jQuery

Simple jQuery Plugin Example

6. Calling our plugin

And finally, we need to call our plugin. So we add the following bit of code anywhere in the HTML of the page:

<script type="text/javascript">
    $(function() {
        $("h2").explainify({
            "color": "blue",
            "font-weight": "bold"
        });
    });
</script>