# Javascript

**URL:** <https://forum.kirupa.com/t/javascript/168666>\
**Category:** Uncategorized\
**Created:** [November 9, 2005, 4:38am UTC](https://forum.kirupa.com/t/javascript/168666 "2005-11-09T04:38:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [November 9, 2005, 4:38am UTC](https://forum.kirupa.com/t/javascript/168666/1 "2005-11-09T04:38:42Z")

</div>

Hmmm wats up with this.

```auto

<script language="javascript">
var day=0;
function showmnth() {
if (!document.layers && !document.all)
return;
var wkday = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
day=day+1;
movingdate = wkday[day];
if (document.layers) {
document.layers.clock.document.write(movingdate )
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingdate;
}
}
setTimeout("showmnth()", 1000)
}
window.onload = showmnth;
</script>

```

i want that to skip through the array, repeating. but NOTHING will work:( Doesnt even show text. But maybe you guys could fix it, as you have most likely had more js meetings than me
