Changeset 12773 for extensions/Autosize/js/Affiche_script.js
- Timestamp:
- Dec 21, 2011, 8:32:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r12692 r12773 1120 1120 //========================================================================= 1121 1121 //=== cadre = theImage 1122 jQuery(Cadre).css({ marginLeft: "auto" });1123 1122 if (theme.match(RegExp("simple", "gi"))) { 1124 1123 jQuery(Cadre).width(Zone_Affichage.width); //centrer simple black 1124 jQuery(Cadre).css({ width: Zone_Affichage.width + "px", 1125 marginLeft: "auto" 1126 }); 1127 1125 1128 } else if (theme.match(RegExp("sobre", "gi")) || theme.match(RegExp("hr_", "gi")) || theme.match(RegExp("Mont", "gi"))) { 1126 jQuery(Cadre).css("width", "auto"); 1129 jQuery(Cadre).css({ width: "auto", marginLeft: "auto" }); 1130 } else if (theme.match(RegExp("saruka", "gi"))) { 1131 1132 jQuery(Cadre).css({ width: Zone_Affichage.width + "px" }); 1133 1127 1134 } else { 1128 1135 jQuery(Cadre).css("width", "auto"); … … 1188 1195 1189 1196 jQuery("embed").css({ width: img_finale.width + "px", 1190 height: img_finale.height + "px" }); 1197 height: img_finale.height + "px" 1198 }); 1191 1199 jQuery("object").css({ width: img_finale.width + "px", 1192 1200 height: img_finale.height + "px" … … 1602 1610 } else if (jQuery("#pamoorama").length) { 1603 1611 Type_Img = "pamoorama"; 1604 1612 } else if (jQuery("#map").length) { 1613 Type_Img = "map"; 1614 } else if (jQuery("#Panorama").length) { 1615 Type_Img = "panorama"; 1605 1616 } else if (jQuery(Parent + " object").length > 0) { 1606 1617 Type_Img = "charlie"; … … 1620 1631 1621 1632 } else if (jQuery(Parent + " iframe").length > 0) { 1633 1622 1634 Type_Img = "charlie"; 1623 if (jQuery(Parent + " div").length > 0) 1624 jQuery(Parent + " div").attr("id", "charlie"); 1625 else 1626 jQuery(Parent + " iframe").attr("id", "charlie"); 1635 1636 //'fb - xfbml - like - button 1637 nbf = jQuery(Parent + " iframe").length; 1638 frm1 = jQuery(Parent + " iframe").get(0) ; 1639 objs = jQuery(Parent + " div").get(0); 1640 if (jQuery(objs).length > 0) { 1641 id_0 = jQuery(objs).attr("id"); 1642 if (id_0 == "") { 1643 jQuery(objs).attr("id", "charlie"); 1644 } else { 1645 if (nbf > 1) { 1646 jQuery(frm1).attr("id", "charlie"); 1647 } else { 1648 Type_Img = "img"; 1649 } 1650 } 1651 } else { 1652 jQuery(frm1).attr("id", "charlie"); 1653 } 1627 1654 type_src = "iframe"; 1628 1655 1629 } else if (jQuery("#map").length) {1630 Type_Img = "map";1631 1632 } else if (jQuery("#Panorama").length) {1633 Type_Img = "panorama";1634 1656 } else if (jQuery(Parent).find("img").length > 0) { 1635 1657 Type_Img = "img";
Note: See TracChangeset
for help on using the changeset viewer.