/    Sign up×
Community /Pin to ProfileBookmark

adding fade effects to gallery

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!

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @moneyman6544 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...