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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -