1. Computing

Day of Week Image

Introduction

From , former About.com Guide

One way that you can have your web page to changed when a visitor returns a day or two later is to display a different image on your page depending on the day of the week. How do we do that? Well by using Javascript to grab the day from your visitors computer and then selecting one of serveral images to display based on that day.

This Javascript code uses seven images to represent the different days of the week. You can use whatever images you like, the only limitation is that all of the images will need to be the same size.

Let's begin by looking at a sample page which shows the image that appears at this time of the day.

Related Video
Add a Background Image to a Webpage
Computer Cable Ports 101

©2013 About.com. All rights reserved.