Change background on if statement
-
I want to change the background of a specific element, this is the code i have:
.overlay .playWrapper { opacity: 0; position: absolute; z-index: 1; top: 0; width: 193px; height: 193px; background: rgba(0,0,0,0.6) url("myimg") no-repeat scroll center center / 60px 60px;
but because i have 2 class elements when i use document.getElementByClass it doesn’t work and i need it to me inside a function, since i want the background to deppend on the condition. Anyone can help with this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change background on if statement’ is closed to new replies.