Divider on a timer.

Discussion in 'JavaScript' started by Jen-, Nov 22, 2006.

  1. #1
    Hello, anyone have anything to put a divider on a timer? I know how to use setTimeout, I just don't know how to do this with a div. Please let me know, thank you very much!

    This is all I have so far, I know its wrong. Just can't find any help on google.
    <script type="text/javascript">
    changediv(){
    document.getElementById("div");
    setTimeout('changediv()',1000);}
    </script>

    <div id="div">
    </div>
     
    Jen-, Nov 22, 2006 IP