I thought this would be simple I am trying tochange the opacity using style. but keeps throwing an error


keeps thowing the error in parsing value for 'filter' declaration dropped

in my css i have

 width: 100%;
 height: 100%;
 background: transparent;
  /* for IE */
  /* CSS3 standard */
 z-index: 102;

might seem like a silly question sorry I am just starting to experiment with javascript

Recommended Answers

.style.opacity = 0.4;
.style.filter = "alpha(opacity=40)";
Jump to Post

All 2 Replies

.style.opacity = 0.4;
.style.filter = "alpha(opacity=40)";

thank you fxm

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.