javascript - How to get opacity value as an int for alpha filter? -
for internet explorer opacity set in inline css this:
style="filter: alpha(opacity=50);"
what i'd opacity value in integer in javascript. ok guess can whole string , parse out int, there faster/better way?
thanks
the javascript pretty simple:
var opacity = this.filters.alpha.opacity;
or if have id...
var opacity = getelementbyid('myelement').filters.alpha.opacity;
Comments
Post a Comment