Asked By
wirt yule
50 points
N/A
Posted on - 12/13/2012
Now that flash is less used. I want to use the javascript to create a banner that has a fade effect and I would like to know how to do it manually if possible. or if not where can I download a free javascript banner fade manual?
Where to download a free JavaScript banner fade manual
Hello Wirt Yule,
You can use the following java script function along with your code for fade out effects;
function fadeOut() {
for (i = 0; i <= 1; i += 0.01) {
setTimeout("SetOpa(" + (1 – i) +")", i * duration);
}
setTimeout("fadeIn()", (duration + hidtime));
}
In this function the” for loop” plays an important role and basically the loop runs until the variable is smaller than 1. You can edit this according to your needs.