Advertisement
Guest User

Untitled

a guest
Jul 6th, 2011
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $( ".tt" )
  2. .mouseenter(
  3.     function(){
  4.         $( '.tt-content', this )
  5.         .tooltip(
  6.             {
  7.                 items: ".tt-content"
  8.                 content: function() {
  9.                     var element = $( this );
  10.                     if ( element.is( ".tt-content" ) ) {
  11.                         return element.html();
  12.                     }
  13.                 }
  14.             }
  15.         ).tooltip( 'open' );
  16.     }
  17. )
  18. .mouseleave(
  19.     function(){
  20.         $( '.tt-content', this ).tooltip( 'close' );
  21.     }
  22. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement