Changeset 6953 for extensions/Autosize/js
- Timestamp:
- Sep 17, 2010, 10:23:58 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r6936 r6953 13 13 Type_Img = "embed"; 14 14 } else if (jQuery("#pamoorama").length) { 15 15 16 16 Type_Img = "pamoorama"; 17 17 } else if (jQuery("#theImage").find("img").length > 0) { … … 42 42 var Image = jQuery(Images).get(0); 43 43 44 if (!Image) return;45 var TheImg = jQuery(Image);44 var TheImg = jQuery("#pamoorama").get(0); 45 if (!TheImg) return; 46 46 break 47 47 } … … 121 121 jQuery("#theImage").width("100%"); 122 122 jQuery("#theImage").height("auto"); 123 jQuery(TheImg).height(Image_height + "px");124 jQuery(TheImg).width(Imgage_Width + "px");125 123 126 if (Type_Img = "pamoorama") {127 124 128 return;129 jQuery("#pamoorama_inner").css("zoom", "1");130 jQuery("#pamoorama_inner").css("height", Image_height + "px");131 jQuery("#pamoorama_inner").css("width", Imgage_Width + "px");132 125 133 jQuery("#pamoorama_outter").css("zoom", "1"); 126 if (Type_Img == "pamoorama") { 127 h1 = jQuery("#pamoorama").height(); 128 jQuery("#pamoorama").css("overflow", "hidden"); 129 jQuery("#pamoorama").css(jQuery(window).width() + "px"); 130 134 131 jQuery("#pamoorama_outter").css("height", Image_height + "px"); 135 jQuery("#pamoorama_outter").css("width", Imgage_Width + "px"); 132 jQuery("#pamoorama_outter").css("width", jQuery(window).width() + "px"); 133 /* 134 jQuery(TheImg).css(Image_height + "px"); 135 jQuery(TheImg).css(jQuery(window).width() + "px"); 136 */ 137 zoom = Image_height / img_height; 138 139 jQuery("#pamoorama_inner").css("zoom", zoom); 140 136 141 137 142 138 143 } else { 139 144 jQuery(TheImg).height(Image_height + "px"); 145 jQuery(TheImg).width(Imgage_Width + "px"); 140 146 141 147 }
Note: See TracChangeset
for help on using the changeset viewer.