Guest User

Untitled

a guest
Feb 28th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. (function ($) {
  2. $.fn.toolTip = function (type) {
  3. var $t, init, show, hide;
  4.  
  5. init = function () {
  6. /** HERE I WANT TO KNOW THE ORIGINAL SELECTOR (.wizard .info) **/
  7. $t = $('<div class="toolTip"><div></div></div>')
  8. $("body").append($t);
  9. };
  10.  
  11. show = function (ui) {
  12. return false;
  13. };
  14.  
  15. hide = function () {
  16. return false;
  17. };
  18.  
  19. init();
  20.  
  21. return this.each(function () {
  22.  
  23. $(this).bind("mouseover", function(){show($this);})
  24. .bind("mouseout", function(){hide($this);});
  25. });
  26. };
  27. })(jQuery);
  28.  
  29. /** I call it like; **/
  30.  
  31. $(".wizard .info").toolTip()
Add Comment
Please, Sign In to add comment