Changeset 13511 for extensions
- Timestamp:
- Mar 7, 2012, 4:49:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r12774 r13511 87 87 return 88 88 } 89 90 nu_img++; 91 89 92 */ 90 nu_img++;91 93 if (typeof fade_in == "undefined") fade_in = 0; 92 94 if (fade_in == 0) { … … 124 126 125 127 // if (nu_img > 1) return; 128 if(typeof stb!="undefined") 129 stb.stop().fadeTo(3500, 0); 130 131 jQuery("#theImage").trigger('ON'); 126 132 127 133 if (typeof The_MainImage == "undefined") return true; 128 134 if (The_MainImage == null) return; 129 130 135 if (jQuery(The_MainImage).length > 0) { 131 132 if(typeof stb!="undefined") 133 stb.stop().fadeTo(3500, 0); 134 136 if (typeof img_h == "undefined") { 135 137 img_h = jQuery(The_MainImage).height(); 136 138 img_w = jQuery(The_MainImage).width(); 139 } 137 140 jQuery("#src_img_h").val(img_h); 138 141 jQuery("#src_img_w").val(img_w); … … 503 506 old_window = { width: 0, height: 0 }; 504 507 jQuery().newResize(); 505 jQuery("#theImage").trigger('ON'); 508 Wait_Affichage(); 509 506 510 507 511 … … 557 561 if (typeof options != "undefined") 558 562 if (options.imageAutosize) { 559 Wait_Affichage();563 // Wait_Affichage(); 560 564 return true; //stripped 561 565 } 562 566 563 567 if (typeof Bandeau_bas == "undefined") 564 return;568 return true; 565 569 566 570 if (typeof cl_visible == "undefined") return true; … … 574 578 if (Math.abs(n) < 1) { 575 579 n = winheight - old_window.height; 576 if (Math.abs(n) < 1) 577 return true; 580 if (Math.abs(n) < 1) { 581 n = winheight - old_window.height; 582 //return false; 583 584 } 578 585 } 579 586 if (Math.abs(n) > 30) nu_img = 0; 587 nu_img++; 580 588 //if (nu_img > 10) return true; 581 589 old_window = jQuery(window).infos(); … … 1473 1481 } 1474 1482 1475 Wait_Affichage();1483 //Wait_Affichage(); 1476 1484 1477 1485 return true; … … 1987 1995 } 1988 1996 1989 // Wait_Affichage();1990 1997 }); 1991 1998 … … 2001 2008 if (nu_img == "") nu_img = 7; 2002 2009 jQuery(jQuery('.debug').get(nu_img)).trigger('ON'); 2003 // Wait_Affichage();2010 jQuery().newResize(); 2004 2011 }); 2005 2012 // Custom Event, ON to turn on a debug.
Note: See TracChangeset
for help on using the changeset viewer.