File: example.js

Recommend this page to a friend!
  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: 13 years ago
Size: 488 bytes


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); });