Changeset 8729 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Jan 18, 2011, 1:17:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r8627 r8729 52 52 53 53 //========================================================================== 54 function Wait_Affichage() { 54 function Wait_Affichage() { 55 56 fade_in = parseInt(fade_in); 55 57 if(!jQuery().newResize()) { 56 58 setTimeout("Wait_Affichage()", 500); 57 59 return 58 60 } 59 60 fade_in = parseInt(fade_in); 61 if (fade_in == 0) { 62 if (msie) 63 jQuery(Parent).css({opacity:"1",filter: "alpha(opacity=100)"}); 64 else 65 jQuery(Parent).css("opacity","1"); 66 } else { 67 jQuery(Parent).animate( 68 { opacity: 1 }, fade_in, "swing" 61 62 if (fade_in == 0) { 63 jQuery(Parent).css({opacity:"1" }); 64 } else { 65 66 jQuery(Parent).animate( 67 { opacity: "1" }, fade_in, "swing" 69 68 , function (i) { 69 jQuery(Parent).css({ opacity: "1" }); 70 70 if (DEBUG == "true") { 71 71 bp1 = jQuery('.debug').get(nu_img); … … 85 85 jQuery(document).ready( 86 86 function (jQuery) { 87 jQuery(window).unload(function () { 88 89 90 91 }); 87 92 jQuery(window).load(function () { 88 if (fade_in != 0) { 89 if (msie) 90 jQuery("#theImage").css({ opacity: "0" }); 91 else 92 jQuery("#theImage").css({ opacity: "0" }); 93 } 93 94 // jQuery("#theImage").css({ opacity: "0" }); 95 96 jQuery("#the_page").css({ top: "0px" }); 97 94 98 //======= cl_conflit ====== 95 99 img_top = "0"; 96 100 rapport = -1; 97 98 101 marges_llgbo = 0; 99 102 pos = 0; 100 101 102 103 //============================================================= 103 104 function cl_Timer() { … … 133 134 img_finale = { height: 0, width: 0 }; 134 135 Zone_Affichage = { height: 0, width: 0 }; 135 136 //============================================================ 136 //============================================================ 137 137 138 138 Info_the_page = jQuery("#the_page").infos(); … … 150 150 } 151 151 old_window = { width: 0, height: 0 }; 152 Wait_Affichage(); 152 jQuery("#theImage").trigger('ON'); 153 153 154 old_window = { width: 0, height: 0 }; 154 155 jQuery().newResize(); … … 255 256 var info_ToolBar = jQuery("#imageToolBar").infos(); 256 257 var marge = 0; 257 marge_right = 0;258 marge_left = 0;258 var marge_right = 0; 259 var marge_left = 0; 259 260 if (theme.match(RegExp("simple", "g"))) { 260 261 if (info_ToolBar.width > 0) … … 263 264 marge = (Zone_Affichage.width - info_the_page.width) / 2; 264 265 265 varmarge_right = marge;266 varmarge_left = marge;266 marge_right = marge; 267 marge_left = marge; 267 268 268 269 if (info_content.width > 100) { … … 274 275 275 276 } 276 } 277 else 277 } else { 278 if (info_ToolBar.width > 0) 279 marge = (info_the_page.width - info_ToolBar.width) / 2; 280 281 marge_right = marge; 282 marge_left = marge; 278 283 winwidth = info_the_page.width; 284 } 279 285 280 286 … … 328 334 jQuery("#map").css("left", info_map.width + "px"); 329 335 Bandeau_bas.height = 10; 330 336 331 337 if (theme.match(RegExp("simple", "g"))) { 332 338 img_reelle.width = winwidth; //- info_map.width -marge_right; 333 } else { 334 img_reelle.width = winwidth - info_map.width -marge_right;339 } else { 340 img_reelle.width = winwidth - info_map.width - marge_right; 335 341 } 336 342 … … 610 616 heightgbo = img_finale.height; 611 617 img_finale.width -= marges_llgbo; 612 img_finale.height -= marges_llgbo; 618 if (jQuery("#slideshow").infos().width > 0) { 619 img_finale.height -= (marges_llgbo * 1.5); 620 } else { 621 img_finale.height -= marges_llgbo 622 } 623 613 624 614 625 if (wingbo > winwidth) { … … 668 679 //================ Zone affichage ========================= 669 680 670 if (theme.match(RegExp("luciano", "g"))) {671 //---- information en dehors du cadre672 jQuery(Cadre).height(Zone_Affichage.height -= Bandeau_bas.height);673 }674 675 //=========================================================676 681 677 682 // jQuery(Cadre).css("top", "0px"); … … 683 688 Image_width = img_finale.width; 684 689 //========================================================================= 685 jQuery(Cadre).css({ marginLeft: marge_left + "px" 686 }); 690 if (jQuery("#slideshow").infos().width > 0) { 691 692 jQuery(Cadre).css({ marginLeft: "auto" 693 }); 694 } 695 else 696 jQuery(Cadre).css({ marginLeft: marge_left + "px" 697 }); 687 698 jQuery(Cadre).width(Zone_Affichage.width); 688 699 // jQuery(Cadre).height(Zone_Affichage.height); … … 816 827 } 817 828 818 819 829 jQuery("#imageContainer").css({ height: "auto" }); 820 830 821 831 jQuery("#navThumbPrev").css({ overflow: "hidden" }); 822 832 jQuery("#navThumbNext").css({ overflow: "hidden" }); 823 833 n = typeof inittoolbar; 824 834 if (Type_Img == "map") { 835 jQuery("#navThumbNext").css({ display: 'none' }); 836 jQuery("#navThumbPrev").css({ display: 'none' }); 837 } 825 838 try { 826 839 if (theme.match(RegExp("gally", "gi"))) { … … 835 848 top: info_img.top + 20 + "px", overflow: "hidden" 836 849 }); 837 if (Type_Img == "map") 838 jQuery("#navThumbPrevContainer").css({ background: 'none' }); 850 839 851 } 840 852 if (jQuery("#navThumbNext").length > 0) { … … 844 856 845 857 } 846 if (Type_Img == "map") 847 jQuery("#navThumbNextContainer").css({ background: 'none' }); 858 859 848 860 if (!theme.match(RegExp("lapis", "gi"))) { 849 initializeImageMode("resize"); 861 if (typeof initializeImageMode == "function") { 862 initializeImageMode("resize"); 863 } 864 850 865 } 851 866 … … 955 970 * 956 971 */ 957 972 958 973 function Info_entete(Parent) { 959 974 if (typeof (marge_top) != "undefined") return result; … … 1022 1037 //============================================================================= 1023 1038 info_description = { top: 0, bottom: 0, height: 0 }; 1024 1025 1039 1040 jQuery(Parent).css({ display: "block" }); 1026 1041 //====== détection du type d'images ====== 1027 1042 if (jQuery("#charlie").length > 0) { … … 1085 1100 if (theme.match(RegExp("luciano", "g"))) { 1086 1101 TheImg = jQuery(Parent + " #theImg img"); 1102 1087 1103 info_img = jQuery(TheImg).infos(); 1088 1104 … … 1242 1258 1243 1259 if (theme.match(RegExp("luciano", "g"))) { 1244 //info_description.bottom -= 30 1260 info_description.bottom -= 0; 1261 1262 1263 correction = -30; 1264 Info_slidshowToolBar = jQuery("#slidshowToolBar").infos(); 1265 1266 if (Info_slidshowToolBar.height > 0) { 1267 correction -= (Info_slidshowToolBar.height); 1268 info_description.top -= 90; 1269 1270 } 1271 1272 1273 1274 //========================================================= 1245 1275 } 1246 1276 … … 1336 1366 Wait_Affichage(); 1337 1367 }); 1338 1368 jQuery(Parent).live('ON', function (e) { 1369 jQuery(jQuery('.debug').get(1)).trigger('ON'); 1370 Wait_Affichage(); 1371 }); 1339 1372 1340 1373 // Custom Event, ON to turn on a debug.
Note: See TracChangeset
for help on using the changeset viewer.