i guess this is what you want:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<style type="text/css"><!--
--></style>
<script type="text/javascript" src="javascript.js"></script>
<script type="text/javascript"><!--
SwapImageID='Something'; // ID of image to swap
SwapImage=new Array();
SwapImage[0]='xx00.gif'; // shown from xx:00 to xx:10
SwapImage[1]='xx10.gif'; // -||- xx:10 to xx:20
SwapImage[2]='xx20.gif'; // -||- xx:20 to xx:30
SwapImage[3]='xx30.gif'; // -||- xx:30 to xx:40
SwapImage[4]='xx40.gif'; // -||- xx:40 to xx:50
SwapImage[5]='xx50.gif'; // -||- xx:50 to xx:00
function Swap(){
x=new Date();
M=x.getMinutes();
Q=(M-(M%10))/10;
document.getElementById(SwapImageID).src=SwapImage[Q];
NextSwap=600000-x%600000;
setTimeout('Swap()',NextSwap);
}
// --></script>
</head>
<body onload="Swap()">
<img id="Something" />
</body>
</html>