Public paste
jquery :(
By: fruffl | Date: Feb 16 2010 13:42 | Format: None | Expires: never | Size: 1.38 KB | Hits: 784

  1. $(this).mouseover
  2.                                                 (      
  3.                                                         function()
  4.                                                         {
  5.                                                                 $(this).find("div.ui-innertable-header").addClass('ui-state-hover');
  6.                                                                 $(this).find("div.ui-innertable-content").addClass('ui-state-hover');
  7.                                                                
  8.                                                                 $(this).find("div.imageButton").mouseover
  9.                                                                 (
  10.                                                                         function()
  11.                                                                         {
  12.                                                                                 // yayaa this is NOT flash *stfu*
  13.                                                                                 $(this).find("div.resizeButton").fadeIn().mouseover
  14.                                                                                 (
  15.                                                                                         function()
  16.                                                                                         {
  17.                                                                                                 $(this).stop(true).css({'background-color':'#f00'});
  18.                                                                                         }
  19.                                                                                 ).click
  20.                                                                                 (
  21.                                                                                         function()
  22.                                                                                         {
  23.                                                                                                 location.href = $(this).parent().find('a').attr('href');
  24.                                                                                                 return false;
  25.                                                                                         }
  26.                                                                                 );
  27.                                                                         }
  28.                                                                 );
  29.                                                                
  30.                 ;
  31.                                                         }
  32.                                                 ).mouseout
  33.                                                 (      
  34.                                                         function()
  35.                                                         {
  36.                                                                 $(this).removeClass('mouse_pointer');
  37.                                                                 $(this).find("div.ui-innertable-header").removeClass('ui-state-hover');
  38.                                                                 $(this).find("div.ui-innertable-content").removeClass('ui-state-hover');
  39.                                                                 $(this).find("div.imageButton").mouseout
  40.                                                                 (
  41.                                                                         function()
  42.                                                                         {
  43.                                                                                 $(this).find("div.resizeButton").fadeOut().mouseout
  44.                                                                                 (
  45.                                                                                         function()
  46.                                                                                         {
  47.                                                                                                 $(this).stop(true).css({'background-color':'#fff'});
  48.                                                                                         }
  49.                                                                                 );
  50.                                                                         }
  51.                                                                 );
  52.                                                         }
  53.                                                 )