View Single Post
Old 12-10-2012, 04:53 PM   PM User | #6
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,354
Thanks: 3
Thanked 458 Times in 445 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
  <title></title>

</head>

<body>
<img id="tst" src="http://www.vicsjavascripts.org.uk/StdImages/Blank.gif" alt="img">
<script type="text/javascript">
<!--
var Messages=['http://www.vicsjavascripts.org.uk/StdImages/1.gif','http://www.vicsjavascripts.org.uk/StdImages/2.gif','http://www.vicsjavascripts.org.uk/StdImages/3.gif','http://www.vicsjavascripts.org.uk/StdImages/4.gif','http://www.vicsjavascripts.org.uk/StdImages/5.gif','http://www.vicsjavascripts.org.uk/StdImages/6.gif','http://www.vicsjavascripts.org.uk/StdImages/7.gif'];

function Message(id,ary,hr){
 var date=new Date(),obj=document.getElementById(id),hr=typeof(hr)=='number'&&hr>=0&&hr<=24?hr:24;
 if (obj&&typeof(ary)=='object'&&ary.constructor==Array&&ary[0]){
  obj.src=ary[date.getDay()+(date.getHours()>=hr?1:0)]||ary[0];
 }
}
Message('tst',Messages,10);
//-->
</script>
</body>

</html>
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote