diff --git a/colorPicker.js b/colorPicker.js index 73effd6..0cb51c0 100644 --- a/colorPicker.js +++ b/colorPicker.js @@ -330,7 +330,12 @@ replace('_bgs.png', !_isIE ? urlData + _data._bgsPng : _options.imagePath + '_bgs.png'). replace('_icons.png', !_isIE ? urlData + _data._iconsPng : _options.imagePath + '_icons.png'). replace('_blank.png', !_isIE ? urlData + _data._blankPng : _options.imagePath + '_blank.cur'). - replace('"Courier New",', !_isIE ? '' : '"Courier New",'); + replace('"Courier New",', !_isIE ? '' : '"Courier New",'). + replace(/opacity:(\d*\.*(\d+))/g, function($1, $2){ + return _isIE ? '-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=' + + Math.round(+$2 * 100) + ')";filter: alpha(opacity=' + Math.round(+$2 * 100) + ')' : + '-moz-opacity: ' + $2 + '; -khtml-opacity: ' + $2 + '; opacity: ' + $2; + }); // style.appendChild(document.createTextNode(_data._cssFunc)); addStyleSheet(_data._cssMain); } diff --git a/developer/colorPicker.css b/developer/colorPicker.css index 636a497..7f61b80 100644 --- a/developer/colorPicker.css +++ b/developer/colorPicker.css @@ -293,7 +293,7 @@ filter: alpha(opacity=20); -moz-opacity: 0.2; -khtml-opacity: 0.2; - opacity: .2; + opacity: 0.2; } .alpha-bg-b .cp-memo { background-color: #333;