/ Published in: JavaScript

A really fucking cool and easy way to calculate the alpha value for microsoft gradient using Javascript. Particularly useful in the Firebug console. Like a calculator.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Replace 0.6 with your desired alpha level Math.floor(0.6 * 255).toString(16); //filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000
Comments
