Changeset 7736 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Nov 10, 2010, 9:36:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r7726 r7736 18 18 } 19 19 //================================================================================================= 20 21 function wait_Timer() { 22 23 jQuery(window).resize(); 24 25 } 20 26 21 27 jQuery(document).ready( … … 49 55 50 56 51 function wait_Timer() {52 53 Resize();54 55 }56 57 //============================================================= 57 58 function cl_Timer() { … … 347 348 myevent.type = namespaces.shift(); 348 349 if (typeof (init_resize) == "undefined") init_resize = false; 349 350 351 352 353 354 355 356 if ( init_resize == false )350 351 new_window = jQuery(window).infos(); 352 init_resize = (new_window.width == old_window.width); 353 if (init_resize == false) { 354 init_resize = Resize(); 355 } 356 init_resize = (new_window.height == old_window.height) 357 if (init_resize == false) 357 358 init_resize = Resize(); ; 358 359 359 360 360 361 … … 364 365 function Resize(Force) { 365 366 366 if (!cl_visible == true) return; 367 if (Force) 368 old_window = { width: 0, height: 0 }; 369 370 371 if (chk == "") return; 367 if (!cl_visible == true) return true; 368 if (chk == "") return true; 372 369 //================================================================= 373 370 //var retour = (getStackTrace()); … … 584 581 case "pamoorama": 585 582 //========================================================= 586 if (typeof (myPamoorama) == "undefined") return 587 if (typeof (myPamoorama.skipInit) == "undefined") return 588 if (myPamoorama.skipInit == false) return 583 if (typeof (myPamoorama) == "undefined") return false; 584 if (typeof (myPamoorama.skipInit) == "undefined") return false; 585 if (myPamoorama.skipInit == false) { 586 setTimeout("wait_Timer()",300); 587 return false; 588 } 589 589 //========================================================= 590 590 img_reelle.height = myPamoorama.imageHeight; … … 927 927 new_width = Zone_Affichage.width - marge_right - marge_left; 928 928 new_width -= 4; 929 jQuery("#pamoorama").css({ marginLeft: "auto", 929 myPamoorama.options.width = new_width; 930 info_theImage.height = img_reelle.height + info_pamoorama_footer.height 931 //==================================================== 932 jQuery("#pamoorama").css({ 933 marginLeft: "auto", 930 934 marginRight: "auto", 931 932 height: Image_height + info_pamoorama_footer.height + "px", 935 height: info_theImage.height + "px", 933 936 width: new_width + "px" 934 937 }); 935 936 myPamoorama.options.width = new_width;937 938 jQuery("#pamoorama").width(new_width); 938 jQuery(Cadre).height(img_height); 939 jQuery("#pamoorama").height(img_height); 940 941 939 //==================================================== 942 940 jQuery("#pamoorama_outter").css({ 943 941 left: marge_left + "px", … … 946 944 }); 947 945 jQuery("#pamoorama_outter").width(new_width); 948 h = info_theImage.height; 949 jQuery("#pamoorama").css({ height: h + "px" }); 950 946 //==================================================== 951 947 jQuery("#pamoorama_footer").width(new_width); 952 948 jQuery("#pamoorama_footer").css('width', new_width + "px"); 949 //==================================================== 950 951 //myPamoorama.continueInit(); 952 //myPamoorama.skipInit = false; 953 953 954 954 jQuery("#linkNext").css({ width: "200px", overflow: "hidden" }); … … 975 975 } 976 976 977 /* 978 jQuery("#Debug1").css({ 979 position: "absolute", 980 top: Bandeau + "px", 981 textAlign: align_auto, 982 margin: "0px auto", 983 984 985 border: "solid 1px red", 986 987 width: Image_width + "px", 988 height: Image_height + "px" 989 990 }); 991 //=================================================== 992 jQuery("#Debug2").css({ position: "absolute", 993 left: Zone_Affichage.left + 'px', 994 border: "solid 1px green", 995 top: Zone_Affichage.top + "px", 996 width: Zone_Affichage.width / 2 + "px", 997 height: Zone_Affichage.height + "px" 998 999 }); 1000 jQuery("#Debug2").text(info_Cadre.bottom); 1001 */ 977 if (DEBUG == "true") { 978 979 jQuery("#Debug1").css({ 980 position: "absolute", 981 top: Bandeau + "px", 982 textAlign: align_auto, 983 margin: "0px auto", 984 985 986 border: "solid 1px red", 987 988 width: Image_width + "px", 989 height: Image_height + "px" 990 991 }); 992 jQuery("#Debug1").text("info_theImage.height : " + info_theImage.height); 993 //=================================================== 994 jQuery("#Debug2").css({ position: "absolute", 995 left: Zone_Affichage.left + 'px', 996 border: "solid 1px green", 997 top: Zone_Affichage.top + "px", 998 width: Zone_Affichage.width / 2 + "px", 999 height: Zone_Affichage.height + "px" 1000 1001 }); 1002 jQuery("#Debug2").text("info_Cadre.height : " + info_Cadre.height); 1003 } 1002 1004 jQuery("#navThumbPrev").css({ overflow: "hidden" 1003 1005 }); … … 1126 1128 1127 1129 } // function 1128 ); // ready1130 ); // ready 1129 1131 /* 1130 1132 *
Note: See TracChangeset
for help on using the changeset viewer.