includes/clientside/static/faders.js
changeset 541 acb7e23b6ffa
parent 539 1beddd693f2d
child 542 5841df0ab575
equal deleted inserted replaced
540:1e4b759da336 541:acb7e23b6ffa
   151   if ( aclDisableTransitionFX )
   151   if ( aclDisableTransitionFX )
   152   {
   152   {
   153     document.getElementById('specialLayer_darkener').style.zIndex = '5';
   153     document.getElementById('specialLayer_darkener').style.zIndex = '5';
   154   }
   154   }
   155   var master_div = document.createElement('div');
   155   var master_div = document.createElement('div');
   156   master_div.style.zIndex = '6';
   156   master_div.style.zIndex = String(getHighestZ() + 5);
   157   var mydiv = document.createElement('div');
   157   var mydiv = document.createElement('div');
   158   mydiv.style.height = '200px';
   158   mydiv.style.height = '200px';
   159   w = getWidth();
   159   w = getWidth();
   160   h = getHeight();
   160   h = getHeight();
   161   if ( aclDisableTransitionFX )
   161   if ( aclDisableTransitionFX )
   429  * @param function Will be passed an HTMLElement that is the body of the prompt window; the function can do with this as it pleases
   429  * @param function Will be passed an HTMLElement that is the body of the prompt window; the function can do with this as it pleases
   430  */
   430  */
   431 
   431 
   432 function miniPrompt(call_on_create)
   432 function miniPrompt(call_on_create)
   433 {
   433 {
   434   darken(false, 40);
   434   if ( document.getElementById('specialLayer_darkener') )
       
   435   {
       
   436     var opac = parseFloat(document.getElementById('specialLayer_darkener'));
       
   437     opac = opac * 100;
       
   438     darken(false, opac);
       
   439   }
       
   440   else
       
   441   {
       
   442     darken(false, 40);
       
   443   }
   435   
   444   
   436   var wrapper = document.createElement('div');
   445   var wrapper = document.createElement('div');
   437   wrapper.className = 'miniprompt';
   446   wrapper.className = 'miniprompt';
   438   var top = document.createElement('div');
   447   var top = document.createElement('div');
   439   top.className = 'mp-top';
   448   top.className = 'mp-top';