|
|
Best books about Javasript
|
The
following image will change dynamically along with day changes.
It means it shows different images on different weekday.

How
to do it? It use Date object to get weekday (getDay()) and
then get moludar value via weekday%*number of images). Copy
the following code to your <head></head> section.
Add
the following code to a proper section in your page
<body onload="rotateimage()">
<img id ="rotate" src="images/dog.gif" >
|
|
|
|