includes/clientside/static/fadefilter.js
changeset 694 43367c66d869
parent 677 2a263b598a2b
child 869 58bc29c14a4d
equal deleted inserted replaced
693:f21aa64d050a 694:43367c66d869
    14   if ( !opacVal )
    14   if ( !opacVal )
    15     opacVal = 70;
    15     opacVal = 70;
    16   darkener_index[layerid] = ( typeof(darkener_index[layerid]) == 'number' ) ? darkener_index[layerid] + 1 : 1;
    16   darkener_index[layerid] = ( typeof(darkener_index[layerid]) == 'number' ) ? darkener_index[layerid] + 1 : 1;
    17   if(document.getElementById(layerid))
    17   if(document.getElementById(layerid))
    18   {
    18   {
       
    19     document.getElementById(layerid).style.zIndex = getHighestZ() + 1;
    19     if(nofade)
    20     if(nofade)
    20     {
    21     {
    21       changeOpac(opacVal, layerid);
    22       changeOpac(opacVal, layerid);
    22       document.getElementById(layerid).style.display = 'block';
    23       document.getElementById(layerid).style.display = 'block';
    23       document.getElementById(layerid).myOpacVal = opacVal;
    24       document.getElementById(layerid).myOpacVal = opacVal;
    58     thediv.style.opacity = '0';
    59     thediv.style.opacity = '0';
    59     thediv.style.filter = 'alpha(opacity=0)';
    60     thediv.style.filter = 'alpha(opacity=0)';
    60     thediv.style.backgroundColor = '#000000';
    61     thediv.style.backgroundColor = '#000000';
    61     thediv.style.width =  '100%';
    62     thediv.style.width =  '100%';
    62     thediv.style.height = '100%';
    63     thediv.style.height = '100%';
    63     thediv.style.zIndex = getHighestZ() + 5;
    64     thediv.style.zIndex = getHighestZ() + 1;
    64     thediv.id = layerid;
    65     thediv.id = layerid;
    65     thediv.myOpacVal = opacVal;
    66     thediv.myOpacVal = opacVal;
    66     if(nofade)
    67     if(nofade)
    67     {
    68     {
    68       thediv.style.opacity = ( parseFloat(opacVal) / 100 );
    69       thediv.style.opacity = ( parseFloat(opacVal) / 100 );