dcsimg

Assignment 38: A Possible Answer

This:

<SCRIPT LANGUAGE="javascript">
function RunningTime() {

var RightNow = new Date()
var hr = RightNow.getHours() + 1
var min = RightNow.getMinutes() + 1
var sec = RightNow.getSeconds() +1
var printIt = "Time: " +hr+ ":" +min+ ":" +sec
defaultStatus = printIt
setTimeout("RunningTime()","1000")

}
</SCRIPT>

 

Gives you the text in the status bar:

     I simply changed out the placement of the variable "printIt" to defaultStatus so it would be stuck down in the status bar.

 

Did You Get It?

 

Back to the Index Page