I wanted to know how I can add the .fadeIn(500)
effect on that system that changes 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>