Ignore:
Timestamp:
Nov 4, 2010, 10:07:40 AM (13 years ago)
Author:
cljosse
Message:

[Autosize][beta] Improvement compatibility Gmaps, rvmaps,pamooramic.

File:
1 edited

Legend:

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

    r7606 r7618  
    2323function wait_Timer() {
    2424    old_w = 0
     25 
    2526    if (DEBUG == "true") {
    2627        info_pamoorama_outter = jQuery("#pamoorama_outter").info();
     
    2930            position: "absolute",
    3031            border: "solid 1px green",
    31             top: 100 + "px",
     32            top: 400 + "px",
    3233            width: (200) + "px",
    33             height: 200 + "px"
     34            height: 400 + "px"
    3435        });
    3536        jQuery("#Debug1").text("Debug1:info : " + info_pamoorama_outter.width +
     
    3738    );
    3839    }
    39     jQuery(window).resize();
    40  
     40    if (jQuery("#pamoorama").length>0)
     41        if (info_pamoorama_outter.height == 0) {
     42       
     43            setTimeout('wait_Timer()', 300);
     44            return
     45        }
     46       jQuery(window).resize();
     47       jQuery("#theImage").css({       filter: 'alpha(opacity:100)',opacity:1 });
    4148
    4249}
     
    6168
    6269      function (jQuery) {
     70          jQuery("#theImage").css({ filter: 'alpha(opacity:10)', opacity: "0.1" });
     71
     72          jQuery(window).load(function () {
     73              setTimeout('wait_Timer()', 600);
     74             
     75             // jQuery("#theImage").get(0).attachEvent('onpropertychange', onPropertyChange);
     76          }
     77         );
    6378
    6479
     
    362377          * window .resize
    363378          */
    364           jQuery(window).resize();
    365           setTimeout('jQuery(window).resize()', 300);
     379
    366380
    367381          jQuery(window).resize(function (event, ui) {
     
    370384              if (eval(user_status + "_enabled") == "") return;
    371385              var chk = eval(user_status + "_enabled");
    372 
    373386
    374387
     
    10851098
    10861099      } // function
    1087 );                                                                                                                                                                                                                                                                                                                                                                                                                                                                 // ready
     1100);                                                                                                                                                                                                                                                                                                                                                                                                                                                                     // ready
    10881101    /*
    10891102*
Note: See TracChangeset for help on using the changeset viewer.