• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 607
  • Last Modified:

IE JavaScript/CSS: filter:alpha(opacity=70);

Using JavaScript, how can I do this:
#modalOverlay {
	filter:alpha(opacity=70); 
}

Open in new window

0
hankknight
Asked:
hankknight
1 Solution
 
ddayx10Commented:
Option 1:
a) Make CSS class:
    .someClass{filter:alpha(opacity=70);}
b) Javascript
    document.getElementById('modalOverlay').className = 'someClass';

Option 2:
    document.getElementById('modalOverlay').style.filter = 'alpha(opacity=70)';

Note: Since you are using #modalOverlay I am making the logical leap that the element you want to place the filter on has an ID of "modalOverlay".
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Tackle projects and never again get stuck behind a technical roadblock.
Join Now