A clock or processing image

Results 1 to 3 of 3

Thread: A clock or processing image

  1. #1
    Join Date
    Dec 1969

    Default A clock or processing image

    I'd like to show a clock ticking or a "processing image" to let the user know that their request is being fulfilled. It sounds easy, but i've been looking for a couple hours and haven't found anything. Just javascript functions that show the CURRENT time. Anyone have any code or an image to share? Thanks

  2. #2
    Join Date
    Dec 1969

    Default Try


  3. #3
    Join Date
    Dec 1969

    Default And how will you get it to display?

    (It&#039;s not hard, I just want to make sure you understand the process.)<BR><BR>&#060;DIV ID="tick"&#062;00:00&#060;/DIV&#062;<BR>&#060;SCRIPT&#062;<BR>var secs = 0<BR>var ticktock = setTimeout("tock( )", 1000);<BR><BR>function tock( )<BR>{<BR> ++secs;<BR> var s = secs % 60;<BR> var m = (secs - s) / 60;<BR> s = "0" + s;<BR> m = "0" + m;<BR> s = s.substring(0,2);<BR> m = m.substring(0,2);<BR> document.getElementById("tick").innerHTML = m + ":" + s;<BR> ticktock = setTimeout("tock( )", 1000);<BR>}<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts