- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
this.getRgbaAtColor = function(color)
{
color = (color.charAt(0)=="#") ? color.substring(1,9):color;
color = (color.substring(0,2)=="0x") ? color.substring(2,10):color;var r = parseInt(color.substring(0,2),16);
var g = parseInt(color.substring(2,4),16);
var b = parseInt(color.substring(4,6),16);
var a = color.substring(6,8);
a = (a=="") ? 255:parseInt(a,16);
return "rgba("+r+","+g+","+b+","+(a/255)+")";
}
istem 17.12.2011 21:36 # 0
KirAmp 17.12.2011 21:48 # −12
TheHamstertamer 17.12.2011 23:24 # 0
>Javascript
Браузерки?
lucidfoxGovno 18.12.2011 01:54 # 0