Posted By

catchatpas on 07/19/11


Tagged


Versions (?)

jQuery Plugin


 / Published in: jQuery
 

  1. (function( $ ){
  2.  
  3. $.fn.tooltip = function( options ) {
  4.  
  5. var settings = {
  6. 'location' : 'top',
  7. 'background-color' : 'blue'
  8. };
  9.  
  10. return this.each(function() {
  11. // If options exist, lets merge them
  12. // with our default settings
  13. if ( options ) {
  14. $.extend( settings, options );
  15. }
  16.  
  17. // Tooltip plugin code here
  18.  
  19. });
  20.  
  21. };
  22. })( jQuery );

Report this snippet  

You need to login to post a comment.