View Full Version : Mootools fading

10-07-2009, 10:47 PM
Hi guys!! Another little problem:
How can I add a time variable to this code:
<script type="text/javascript">
// footer fading
$('footer').setStyle('opacity', 0.5);
window.addEvent( 'load', $('footer').tween.pass(['opacity', 1], $('footer')));
I need to load the object after the rest of the page, 5 second after for example.
How can I script this?