Changeset 7826 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Nov 20, 2010, 11:00:58 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r7821 r7826 180 180 info_img = jQuery("#" + Parent + " #theImg img").infos(); 181 181 182 } else { 182 } else if (jQuery("#charlie").length > 0) { 183 jQuery("#charlie").css("position","relative"); 184 // info_img = jQuery("#charlie").infos(); //charlie 185 info_img = jQuery('#charlie object').infos(); //player 186 187 188 } else { 183 189 184 190 info_img = jQuery("#" + Parent + " img").infos(); 185 191 } 186 187 192 info_description.marge = { bottom: info_img.padding.bottom + info_img.margin.bottom + info_img.borderwidth.bottom, 188 193 top: info_img.padding.top + info_img.borderwidth.top 189 194 } 195 if (( info_img.bottom-info_img.top) < 100 ) 196 info_img.top =0 ; 190 197 191 198 info_description.top = Bandeau + info_img.top + info_img.bottom + info_img.margin.bottom + info_img.borderwidth.bottom; … … 244 251 245 252 if (info_description.bottom < info_description.top) { 246 info_description.bottom = info_description.top; 253 top_tmp= info_description.top; 254 info_description.top=info_description.bottom; 255 info_description.bottom =top_tmp; 247 256 248 257 info_desc = jQuery("#" + Parent + " p:last").infos(); … … 250 259 if (info_desc.bottom > info_img.bottom) 251 260 info_description.bottom = info_desc.bottom; 261 if (info_description.bottom < info_description.top) { 262 top_tmp= info_description.top; 263 info_description.top=info_description.bottom; 264 info_description.bottom =top_tmp; 265 } 266 info_description.height =info_description.bottom-info_description.top; 267 252 268 } 253 269 … … 352 368 jQuery(window).resize( 353 369 function (event, ui) { 354 return ;370 355 371 356 372 event = event || window.event; … … 786 802 //========================================================================== 787 803 h = 0; 804 if(Bandeau_bas.height <0) Bandeau_bas.height =0 ; 805 788 806 Zone_Affichage.height = winheight - Bandeau - Marge_Basse - correction; 789 807 var Image_height = Zone_Affichage.height - Bandeau_bas.height - Bandeau_bas.marge.top - Bandeau_bas.marge.bottom; … … 991 1009 } 992 1010 } 993 //============================================================== 1011 //============= flv,mov,mpg ok 1012 /* wmv nok 1013 * avi nok 1014 //=========================================== 1015 */ 994 1016 if (Type_Img == "charlie") { 995 1017 t1 = jQuery("#charlie").infos(); 1018 996 1019 /**/ 997 1020 pdf = 2 * parseInt(jQuery(".none_2").css("paddingRight")); 998 1021 jQuery("#charlie").css({ 999 width: Image_width + pdf ,1022 width: Image_width + pdf , 1000 1023 height: Image_height, 1001 1024 margin: "auto" 1002 1025 }); 1003 1026 1027 jQuery(".none_2").width(Image_width) ; 1028 jQuery(".none_2").height( Image_height) ; 1029 1004 1030 1005 1031 jQuery("#player").css("width", Image_width + 100 + "px"); … … 1012 1038 jQuery("object").width(Image_width); 1013 1039 jQuery("object").height(Image_height); 1040 1041 1014 1042 } else if (Type_Img == "panorama") { 1015 1043
Note: See TracChangeset
for help on using the changeset viewer.