|
|
Best books about Javasript
|
This
example shows how to use timer to switch images automatically.
See the following
example;

How
to do it? It sets up 1 second timer to dynamically switch images.
Copy the following javascript to <head></head> section
in your page.
Choose
your images. Put one in your web page like this:
<img name="banner" src="yourimagefile">
Insert the following code to <body> tag:
<body onload="clockSpeed()">
|
| |
|
|
|