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

git-svn-id: http://svn.openlayers.org/trunk/openlayers@344 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-25 01:08:26 +00:00
parent 022ffde95e
commit b8d47df9ec

View File

@@ -68,15 +68,17 @@ Rico.Corner = {
*/
changeOpacity: function(theDiv, newOpacity) {
theDiv.style.opacity = newOpacity / 10;
theDiv.style.filter = 'alpha(opacity=' + newOpacity*10 + ')';
var mozillaOpacity = newOpacity / 10
var ieOpacity = 'alpha(opacity=' + newOpacity * 10 + ')';
theDiv.style.opacity = mozillaOpacity;
theDiv.style.filter = ieOpacity;
var spanElements = theDiv.parentNode.getElementsByTagName("span");
for (var currIdx = 0; currIdx < spanElements.length; currIdx++) {
spanElements[currIdx].style.opacity = newOpacity / 10;
spanElements[currIdx].style.filter = 'alpha(opacity=' +
newOpacity*10 + ')';
spanElements[currIdx].style.opacity = mozillaOpacity;
spanElements[currIdx].style.filter = ieOpacity;
}
},