+ 4
How can i change opacity in js?
I think on sololearn it doesn’t work cuz i waste a lot of time to do this.
7 Respuestas
+ 5
window.onload=function
+ 5
Have you ever tried this JS code:
window.onload = function() {
var a = document.getElementById("a");
a.style.opacity = 1;
}
where the thing you want to change the opacity has the id "a".
+ 4
You can use DOM to acces the style of a object with JS. I have no idea why this doesn't work for you, BUT you can use w3schools to get in hands with DOM and maybe solve your problem. Good luck!
+ 2
https://code.sololearn.com/Wu4bNz5dYBTP/?ref=app
You have to add those CSS lines...
+ 1
Yes, i try this js code. A lot of variation. But it doesn’t work, so check my code nia pls.
+ 1
The Krutoi Malchik Could you please show us the code??