Ignore:
Timestamp:
Nov 19, 2010, 2:31:09 PM (13 years ago)
Author:
cljosse
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Autosize/js/Affiche_script.js

    r7819 r7820  
    2323   
    2424}
    25 //=================================================================================================
    26  function Wait_Pamoorama() {
     25 
     26//==========================================================================
     27function Wait_Affichage() {
     28   if (jQuery("#pamoorama").length) {
     29               jQuery().newResize() ;
    2730               mypanorama = window.myPamoorama;
    28                if (!mypanorama) setTimeout("Wait_Pamoorama()", 500);
    29                  if ( mypanorama.skipInit==false) setTimeout("Wait_Pamoorama()", 500);
     31               if (!mypanorama){
     32                    setTimeout("Wait_Affichage()", 500);
     33                    return false ;
     34               }
     35                 if ( mypanorama.skipInit==false) {
     36                    setTimeout("Wait_Affichage()", 500);
     37                    return false ;
     38               }
    3039                     info_pamoorama = jQuery("#pamoorama").infos();
    3140                    new_width= info_pamoorama.width ;
    32               if(! jQuery().newResize()) setTimeout("Wait_Pamoorama()", 500);
    33                  if (  myPamoorama.options.width!= new_width ) return
    34                  jQuery("#theImage").css(
    35                          { opacity: 1 }
    36                         );
    37                          
    38 }
    39 function Wait_Affichage() {
    40                 if(!jQuery().newResize()) {
     41               
     42                 if (  Math.abs(new_width - myPamoorama.options.width)>10  ) {
    4143                 setTimeout("Wait_Affichage()", 500);
    42                  }
     44                 return false ;
     45                 }
     46         
     47
     48     }else  if(!jQuery().newResize()) {
     49                 setTimeout("Wait_Affichage()", 500);
     50                 return
     51    }
     52
     53
    4354      fade_in = parseInt(fade_in);
    4455            if (fade_in==0 )
    4556                 {
    4657                 jQuery("#theImage").css({
    47                          opacity: 1,
    48                          filter: 'alpha(opacity:100)'}
     58                         opacity: 1
     59                         
     60                         }
    4961                 )
    5062                                 }else{
     
    5567
    5668
    57                  jQuery("#theImage").css(
    58                          { opacity: 1 }
    59                         );
    6069                         
    6170}
     
    342351
    343352             jQuery(window).resize(
    344                function (event, ui) {       
     353               function (event, ui) {   
     354               return ;
     355                   
    345356               event = event || window.event;
    346357
     
    409420           return ;
    410421
    411                  if(jQuery.browser.msie)
    412                  {    var el = e.srcElement;
    413                         ID = el.id;               
    414                         Prop = e.propertyName.split(".");
    415                         if(Prop.length < 2) return ;                     
    416                           Property = Prop[1];
    417                  }
    418                  else
    419                  {ID =this.id ;
    420                      Prop = e.attrName ;
    421                      Property = e.newValue  ;
    422                  }
    423            jQuery().affiche_debug({ Dragg: {texte:"onPropertyChange : " + ID,
    424                      css:{
    425                          opacity: 0.5,
    426                          filter: 'alpha(opacity:50)',
    427                          position: "absolute",
    428                          width: "500px",
    429                          border: "solid 1px green",
    430                          top: 130 + "px"}
    431                      }
    432                      });
    433                   mypanorama = window.myPamoorama;
    434                  if (Property.match("width","gi")) {
    435                    
    436                  
    437                 if(!mypanorama)
    438                   setTimeout("wait_Pamoorama()", 500);
    439                    
    440 
    441 
    442                if(jQuery("#pamoorama_outter").length == 0)
    443                {
    444                elem=jQuery("#pamoorama").get(0);
    445                  type="propertychange";
    446             handle=jQuery().onPropertyChange;
    447 
    448                      if (elem.addEventListener) {// Firefox, Opera, Google Chrome and Safari
    449                             elem.addEventListener('DOMAttrModified', handle, false);
    450                         } else if (elem.attachEvent) {
    451                             elem.attachEvent("on" + type, handle);
    452                         }
    453                   setTimeout("wait_Timer()", 600);
    454                   }
    455                else if( jQuery("#pamoorama_footer").length == 0)
    456                    setTimeout("wait_Pamoorama()", 600);
    457                 else if( jQuery("#pamoorama_frame").length == 0)
    458                     setTimeout("wait_Pamoorama()", 600);
    459                  }
    460                  return;
     422
    461423             },
    462                      /*
     424             /*
    463425             * recherche la plus grande image (hauteur ou largeur)
    464426             */
     
    592554
    593555                     if (myPamoorama.skipInit == false) {
    594                             setTimeout("Wait_Pamoorama()", 500);
     556                           
    595557                            return false;
    596558                     }
Note: See TracChangeset for help on using the changeset viewer.