Login   Register  
Icontem

File: example.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Roy Yu  >  ToolTip plugin  >  example.js  >  Download  
File: example.js
Role: Example script
Content type: text/plain
Description: how to call this plugin
Class: ToolTip plugin
jQuery plugin to display tooltips
Author: By
Last change: add comment
Date: 2010-12-02 09:04
Size: 488 bytes
 

Contents

Class file image Download
$(document).ready(function(){

    /* you can pass in your own setup function to change the behavior, so you don't need to mess with the plugin */

    var myCall = function(el) {
        $(el).bind('mouseover', function() {
            $(this).addClass('highlight');
        });
        
        $(el).bind('mouseout',function() {
            $(this).removeClass("highlight");
        });
    }

    $('.tipholder').ToolTip({idata:'data',ifollow:true},myCall);
    
});