I have this little code wich is working quite good, it makes a slide
show on the body background, anyone could guide me on how to add a
fade effect as a transition between the images??
var Pic = new Array('cow2.jpg ','cow3.jpg','c ow4.jpg');
j=0;
p=Pic.length;
function preLoad() {
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
}
function runBGSlideShow( ){
document.body.b ackground = Pic[j];
j++;
if (j (p-1)){
j=0
}
setTimeout('run BGSlideShow()', 2000);
}
</script>
</head>
<body onload="runBGSl ideShow();preLo ad()">
show on the body background, anyone could guide me on how to add a
fade effect as a transition between the images??
var Pic = new Array('cow2.jpg ','cow3.jpg','c ow4.jpg');
j=0;
p=Pic.length;
function preLoad() {
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
}
function runBGSlideShow( ){
document.body.b ackground = Pic[j];
j++;
if (j (p-1)){
j=0
}
setTimeout('run BGSlideShow()', 2000);
}
</script>
</head>
<body onload="runBGSl ideShow();preLo ad()">
Comment