OpenLayers OpenLayers

Changeset 344

Show
Ignore:
Timestamp:
05/24/06 21:08:26 (3 years ago)
Author:
euzuro
Message:

small stylistic change to our own function inside rico corners. no change in functionality

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/Rico/Corner.js

    r69 r344  
    6969    changeOpacity: function(theDiv, newOpacity) { 
    7070    
    71         theDiv.style.opacity = newOpacity / 10; 
    72         theDiv.style.filter = 'alpha(opacity=' + newOpacity*10 + ')'; 
     71        var mozillaOpacity = newOpacity / 10 
     72        var ieOpacity = 'alpha(opacity=' + newOpacity * 10 + ')'; 
     73         
     74        theDiv.style.opacity = mozillaOpacity; 
     75        theDiv.style.filter = ieOpacity; 
    7376 
    7477        var spanElements = theDiv.parentNode.getElementsByTagName("span"); 
    7578         
    7679        for (var currIdx = 0; currIdx < spanElements.length; currIdx++) { 
    77             spanElements[currIdx].style.opacity = newOpacity / 10; 
    78             spanElements[currIdx].style.filter = 'alpha(opacity=' +  
    79                                                     newOpacity*10 + ')'; 
     80            spanElements[currIdx].style.opacity = mozillaOpacity; 
     81            spanElements[currIdx].style.filter = ieOpacity; 
    8082        } 
    8183