Guest User

Untitled

a guest
Jun 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                     $(".navigation_tiles").each(function() {
  2.                             var style_assigned = false;
  3.                            
  4.                             if($(this).position().left >= 605 && $(this).position().top <= 353){
  5.                                 // Then add the special class.
  6.                                 $(this).find(".rollover").addClass("tool_tip_img_to_left");
  7.                                 style_assigned = true;
  8.                             }
  9.                             if($(this).position().top >= 355 && $(this).position().left < 603){
  10.                            
  11.                                 $(this).find(".rollover").addClass("tool_tip_img_to_bottom");
  12.                                 style_assigned = true;
  13.                             }
  14.                            
  15.                             if($(this).position().top >= 355 && $(this).position().left >= 603){
  16.                                 $(this).find(".rollover").addClass("tool_tip_img_to_bottom_left");
  17.                                 style_assigned = true;
  18.                             }
  19.                             if(style_assigned == false){
  20.                                 $(this).find(".rollover").addClass("tool_tip_img");
  21.                             }
  22.                        
  23.                         if($.browser.safari){
  24.  
  25.                         }
  26.                        
  27.                         if($.browser.mozilla){
  28.                             // This is firefox
  29.                            
  30.                             var style_assigned = false;
  31.                            
  32.                             if($(this).css('translate')[0] >= 605 && $(this).css('translate')[1] <= 353){
  33.                                 // Then add the special class.
  34.                                 $(this).find(".rollover").addClass("tool_tip_img_to_left");
  35.                                 style_assigned = true;
  36.                             }
  37.                             if($(this).css('translate')[1] >= 355 && $(this).css('translate')[0] < 603){
  38.                                 $(this).find(".rollover").addClass("tool_tip_img_to_bottom");
  39.                                 style_assigned = true;
  40.                             }
  41.                            
  42.                             if($(this).css('translate')[1] >= 355 && $(this).css('translate')[0] >= 603){
  43.                                 $(this).find(".rollover").addClass("tool_tip_img_to_bottom_left");
  44.                                 style_assigned = true;
  45.                             }
  46.                             if(style_assigned == false){
  47.                                 $(this).find(".rollover").addClass("tool_tip_img");
  48.                             }
  49.                            
  50.                         }
  51.                     });
Add Comment
Please, Sign In to add comment