OpenLayers OpenLayers

Changeset 345

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

change algorithms so that corners' changeOpacity function takes as input a float value between 1 and 0, instead of between 1 and 10. Might as well subscribe to *somebody's* standard and adapt to the other, rathere than something in between. plus, this is how Popup.js was designed.

Files:

Legend:

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

    r344 r345  
    6262    *     See changeColor (above) for algorithm explanation 
    6363    * 
    64     * @param {DOM} theDiv - A child of the outer <div> that was 
     64    * @param {DOM} theDiv A child of the outer <div> that was 
    6565    *                        supplied to the `round` method. 
    6666    * 
    67     * @param {int} newOpacity - The new opacity to use (1-10). 
     67    * @param {int} newOpacity The new opacity to use (0-1). 
    6868    */ 
    6969    changeOpacity: function(theDiv, newOpacity) { 
    7070    
    71         var mozillaOpacity = newOpacity / 10 
    72         var ieOpacity = 'alpha(opacity=' + newOpacity * 10 + ')'; 
     71        var mozillaOpacity = newOpacity; 
     72        var ieOpacity = 'alpha(opacity=' + newOpacity * 100 + ')'; 
    7373         
    7474        theDiv.style.opacity = mozillaOpacity;