Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".navigation_tiles").each(function() {
- var style_assigned = false;
- if($(this).position().left >= 605 && $(this).position().top <= 353){
- // Then add the special class.
- $(this).find(".rollover").addClass("tool_tip_img_to_left");
- style_assigned = true;
- }
- if($(this).position().top >= 355 && $(this).position().left < 603){
- $(this).find(".rollover").addClass("tool_tip_img_to_bottom");
- style_assigned = true;
- }
- if($(this).position().top >= 355 && $(this).position().left >= 603){
- $(this).find(".rollover").addClass("tool_tip_img_to_bottom_left");
- style_assigned = true;
- }
- if(style_assigned == false){
- $(this).find(".rollover").addClass("tool_tip_img");
- }
- if($.browser.safari){
- }
- if($.browser.mozilla){
- // This is firefox
- var style_assigned = false;
- if($(this).css('translate')[0] >= 605 && $(this).css('translate')[1] <= 353){
- // Then add the special class.
- $(this).find(".rollover").addClass("tool_tip_img_to_left");
- style_assigned = true;
- }
- if($(this).css('translate')[1] >= 355 && $(this).css('translate')[0] < 603){
- $(this).find(".rollover").addClass("tool_tip_img_to_bottom");
- style_assigned = true;
- }
- if($(this).css('translate')[1] >= 355 && $(this).css('translate')[0] >= 603){
- $(this).find(".rollover").addClass("tool_tip_img_to_bottom_left");
- style_assigned = true;
- }
- if(style_assigned == false){
- $(this).find(".rollover").addClass("tool_tip_img");
- }
- }
- });
Add Comment
Please, Sign In to add comment