What I am trying to accomplish is a clock that updates every five
seconds. Before it updates I want it to fade out, and after it updates
I want it to fade back in. This is what I have right now:

    <script type="text/javascript" src="prototype.js"></script>
    <script type="text/javascript" src="scriptaculous.js"></script>
    <script type="text/javascript">
        function update_clock() {
            new Ajax.Updater('clock', 'clock.py');

        new Ajax.Updater('clock', 'clock.py');
        new PeriodicalExecuter(update_clock, 5);
    <div id="clock"></div>

What happens when I open that page is odd. The clock updates, fades
in, then fades out until the next update. What am I doing wrong?

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to