1. Computing

Time of Day Image

4. Add to Your Page

Join the Discussion

Questions? Comments?

The final step in installing this script is to add the following code to the body of your web page where you want the image to appear.

<script type="text/javascript">
timeOfDayImage();
</script>

If you want to display one of the images to visitors whose browsers don't have Javascript enabled then add the following code immediately after the above code.

<noscript><img src=time5.gif" width="200" height="80" alt="time of day image - requires Javascript" /></script>

Of course anyone with Javascript disabled will always see the same image (the above code shows the noon image) but at least the layout of your page wont be affected the way it could be if you didn't show one in this instance.

1 | 2 | 3 | 4
Related Video
Zip File 101
Computer Cable Ports 101

©2013 About.com. All rights reserved.