Changeset 11442 for extensions/Autosize/js
- Timestamp:
- Jun 20, 2011, 1:26:40 PM (13 years ago)
- Location:
- extensions/Autosize/js
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/Affiche_script.js
r11429 r11442 1 1 Parent = "#theImage"; 2 3 4 2 function Toggle_bp() { 5 3 cl_visible = !cl_visible; … … 310 308 var old_window = { width: 0, height: 0 }; 311 309 312 Bandeau_bas = Info_Description_f(Parent); 310 Bandeau_bas = Info_Description_f(Parent); 311 if (typeof Bandeau_bas == "undefined") { 312 313 } 313 314 if (typeof Bandeau_bas != "undefined") Bandeau = Bandeau_bas.top; 314 315 else Bandeau = 0; 315 if (typeof Bandeau_bas == "undefined") { }316 316 old_window = { width: 0, height: 0 }; 317 317 jQuery("#theImage").trigger('ON'); … … 376 376 newResize: function () { 377 377 // 378 379 if (typeof options != undefined) 378 if (typeof options != undefined) 380 379 if (options.imageAutosize) 381 380 return true; //stripped … … 464 463 marge_left += Zone_Affichage.borderwidth.left; 465 464 winwidth -= (marge_right + marge_left); 466 465 //--------------------------------------------- 466 /* 467 jQuery(Parent).width(winwidth); // 1.6.2 468 jQuery(Parent).css({ height: "auto" }); //1.6.2 469 */ 470 // jQuery(Parent).height(Zone_Affichage.height); 471 //--------------------------------------------- 467 472 468 473 if (Type_Img == "pamoorama") { … … 600 605 //info_theImage.height = img_reelle.height; 601 606 602 info_theImage.height = info_theImage.height;607 info_theImage.height = info_theImage.height; 603 608 604 609 info_the_page = jQuery("#the_page").infos(); … … 641 646 642 647 img_reelle.width = parseInt(img_reelle.width); 643 // jQuery(Cadre).width(mini_width); 648 // jQuery(Cadre).width(mini_width); 1.6.2 644 649 645 650 646 651 if (img_reelle.width < mini_width) { 647 //jQuery(Cadre).width(mini_width); 652 //jQuery(Cadre).width(mini_width); 1.6.2 648 653 return true; 649 654 … … 728 733 Zone_Affichage.width = mini_width2; 729 734 //========================================================================= 730 if (typeof (Bandeau_bas) != "undefined") { 735 if (typeof (Bandeau_bas) != "undefined") { 731 736 Zone_Affichage.height -= (Bandeau_bas.height + Bandeau_bas.marge.top + Bandeau_bas.marge.bottom); 732 733 734 } else { 735 737 } else { 736 738 } 737 739 … … 923 925 // jQuery(Cadre).width(Zone_Affichage.width); 924 926 jQuery(Cadre).css("width", "auto"); 925 if (Type_Img == "panorama" || Type_Img == "pamoorama") 926 img_finale.height = info_theImage.height; 927 Zone_Affichage.height = img_finale.height; 928 jQuery(Cadre).height(Zone_Affichage.height); 927 928 if (Type_Img == "panorama" || Type_Img == "pamoorama") { 929 img_finale.height = info_theImage.height; 930 Zone_Affichage.height = img_finale.height; 931 jQuery(Cadre).height(Zone_Affichage.height); 932 } 929 933 930 934 if (typeof (gmaps) != "undefined") { … … 957 961 width: img_finale.width + pdf, 958 962 height: img_finale.height, 959 margin : "auto"963 marginLeft: "auto" 960 964 }); 961 965 … … 972 976 jQuery("object").height(img_finale.height); 973 977 978 jQuery(Cadre).height(img_finale.height + Bandeau_bas.height); //?? 979 jQuery(theImg).height(img_finale.height); 980 981 jQuery(Cadre).css("height", "auto"); 974 982 975 983 } else if (Type_Img == "panorama") { … … 1064 1072 } else { 1065 1073 //===map ? luciano === 1074 1075 // jQuery(Cadre).height(Zone_Affichage.height + Bandeau_bas.height); //?? 1076 // jQuery(Cadre).height(img_finale.height + Bandeau_bas.height); //?? 1077 jQuery(Cadre).css("height","auto"); //?? 1066 1078 jQuery(theImg).height(img_finale.height); 1067 1079 jQuery(theImg).width(img_finale.width); … … 1331 1343 if (jQuery("#charlie").length > 0) { 1332 1344 Type_Img = "charlie"; 1345 1333 1346 } else if (jQuery("#pamoorama").length) { 1334 1347 Type_Img = "pamoorama"; … … 1357 1370 1358 1371 if (llgboframe.height > 0) { 1359 ll2 = jQuery("#gbo div:last").infos();1372 ll2 = jQuery("#gbo div:last").infos(); 1360 1373 ll1 = jQuery("#gbo div:first").infos(); 1361 1374 ll2 ="" ; … … 1413 1426 1414 1427 1415 } else if (jQuery("#charlie").length > 0) { 1416 1417 jQuery("#charlie").css({ padding: "0px" 1418 1419 }); 1420 theImg = jQuery("#charlie") 1428 } else if (jQuery("#charlie").length > 0) { 1429 1430 if (jQuery("object").attr("type") == 'application/x-shockwave-flash') { 1431 jQuery("#charlie").css({ 1432 paddingTop: "0px", 1433 marginTop: "0px", 1434 paddingBottom: "30px", 1435 marginBottom: "0px" 1436 }); 1437 } else { 1438 jQuery("#charlie").css({ 1439 paddingTop: "0px", 1440 marginTop: "0px", 1441 paddingBottom: "10px", 1442 marginBottom: "0px" 1443 }); 1444 } 1445 theImg = jQuery("#charlie"); 1421 1446 info_img = jQuery(theImg).infos(); 1422 1423 1424 1447 1425 1448 } else if (jQuery(Parent + " embed").length > 0) { 1426 1449 … … 1433 1456 if (!nopano) { 1434 1457 Wait_pamoorama(); 1435 return 1458 return info_description; 1436 1459 } 1437 1460 theImg = jQuery("#pamoorama"); … … 1453 1476 } 1454 1477 1478 //theImg = Get_Img_Maxi(theImg); //1.6.2 1479 //if (!theImg) theImg = jQuery(Parent); // 1.6.2sans img ?? 1455 1480 info_img = jQuery(theImg).infos(); 1456 1481 } … … 1517 1542 check_desc_v = true; 1518 1543 1519 } else { 1544 } else { 1545 if (theme.match(RegExp("sobre", "gi"))) { 1546 info_description.marge.top = -2; 1547 } 1520 1548 info_description.bottom = info_theImage.bottom; 1521 1549 info_description.top = info_img.height + info_theImage.top; … … 1524 1552 // 1525 1553 1526 info_description.height = info_description.bottom - info_description.top;1554 info_description.height = info_description.bottom - info_description.top; 1527 1555 1528 1556 if (check_desc_v == false) {
Note: See TracChangeset
for help on using the changeset viewer.