FUNCTION setFadeIn(value){
IF (value <= 100) {
setOpacityValue(value);
+value += 10;
window.setTimeout("setFadeIn("+value+")" 100);
}
}
FUNCTION setFadeOut(value){
IF (value >= 0) {
setOpacityValue(value);
value -= 10;
setTimeout("setFadeOut("+value+")" 100);
}
}
FUNCTION setOpacityValue(opacityValue){
document.getElementById("someID".style.opacity = opacityValue/100;
}
By simply changing the opacity of an element, having something fade in and out is pretty simple. I have gotten this transition to look nice and work, but I now have to figure out how to get the transition to work with all the different elements of the current billboard gadget. Having the different elements working concurrently is pretty challenging and I hope to figure out this problem by my next week's blog.
Our current billboard, which still has some debug code on it, can be found at our google project site.
0 comments:
Post a Comment