tested & working
WARNING-may add beauty to your site,lol
For example, if you have multiple pictures on your website but you don't want to cram your material with pictures, then this script will solve this problem.
Code:
1 <table cellpadding="2" cellspacing="2">
2 <tr>
3 <td id="pictures">
4 <script type="text/javascript">
5 <!--
6 var pics = new Array();
7 pics[0] = "yourpicture1";
8 pics[1] = "yourpicture2";
9 pics[2] = "yourpicture3";
10 pics[3] = "yourpicture4";
11 pics[4] = "yourpicture5";
12 pics[5] = "yourpicture6";
13
14 var Today=new Date();
15 var day=Today.getDate();
16 var sec=Today.getSeconds();
17
18 favorites = pics[sec % #ofPictureListedAbove];
19 favorites = ""+favorites+".jpg/gif";
20 message = "<img src=\""+favorites+"\"
border=\"0\" alt=\"My Favorites\" width=\"150\"
height=\"150\" />";
21 document.write(message);
22 // -->
23 </script>
24 </td>
25 </tr>
26 </table>
27
When it's done, every time you refresh your browser, the server should change the picture each time you refresh and your visitors will also get the same effect as well.