Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Avizzv92

macrumors regular
Original poster
Mar 23, 2008
172
0
I want multiple elements to fade out when the widget loads up, I can get one element to fade out, but how do I get multiple elements to fade out on the same onLoad event.

function elementHide(event)
{
// Values you provide
var itemToFadeOut = document.getElementById("img"); // replace with name of element to fade

// Fading code
var fadeHandler = function(a, c, s, f){ itemToFadeOut.style.opacity = c; };
new AppleAnimator(5, 13, 1.0, 0.0, fadeHandler).start();

}

Thanks for any help given. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.