Recommend this page to a friend! | Stumble It! | Bookmark in del.icio.us |
Classes of Roy Yu | > | ToolTip plugin | > | example.js | > | Download | ||
|
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); }); |