Hello everyone,
I am new to this forum and this is problem an easy problem to figure out but I want to add fade effects to this gallery I have. I cannot figure out how to do it
here is the script I have
<script>
var howOften = 10; //number often in seconds to rotate
var current = 0; //start the counter at 0
var ns6 = document.getElementById&&!document.all; //detect netscape 6
// place your images, text, etc in the array elements here
var items = new Array();
items[0]=”<img src=’/slider/slider1.gif’ height=’518px’ width=’1250px’ border=’0′ /></a>”;
items[1]=”<img src=’/slider/slider2.gif’ height=’518px’ width=’1250px’ border=’0′ /></a>”;
items[2]=”<img src=’/slider/slider3.gif’ height=’518px’ width=’1250px’ border=’0′ /></a>”;
items[3]=”<img src=’/slider/slider4.gif’ height=’518px’ width=’1250px’ border=’0′ /></a>”;
items[4]=”<img src=’/slider/slider5.gif’ height=’518px’ width=’1250px’ border=’0′ /></a>”;
function rotater() {
document.getElementById(“placeholder”).innerHTML = items[current];
current = (current==items.length-1) ? 0 : current + 1;
setTimeout(“rotater()”,howOften*1000);
}
function rotater() {
if(document.layers) {
document.placeholderlayer.document.write(items[current]);
document.placeholderlayer.document.close();
}
if(ns6)document.getElementById(“placeholderdiv”).innerHTML=items[current]
if(document.all)
placeholderdiv.innerHTML=items[current];
current = (current==items.length-1) ? 0 : current + 1; //increment or reset
setTimeout(“rotater()”,howOften*1000);
}
window.onload=rotater;
//–>
</script>
any help would be great. thanks!