6
I wanted to know how I can add the effect .fadeIn(500)
in this system that exchanges the background
every 10 seconds.
<script>
inicial_background = 0;
function mudar_background(){
img = new Array();
img[0] = "style/img/bg_1.jpg";
img[1] = "style/img/bg_2.jpg";
document.body.background=img[inicial_background];
inicial_background++;
if (inicial_background==img.length){
inicial_background = 0;
}
setTimeout("mudar_background()",10000);
}
</script>
<body onload="mudar_background();"></body>
Boy, I hadn’t even thought of that =D
– Josimara
But IE doesn’t take Transition only IE10 +
– Josimara
@Josimara, yes, only for IE10+. But the percentages of use of previous ones is very small and will decrease: http://www.w3schools.com/browsers/browsers_explorer.asp
– Sergio
Hopefully, it’s a dream for many, but a much bigger dream is an end for IE hueheueh
– Josimara