I'm a JavaScript newbie, just doing a little script so that I can rotate an image + link every few days. I'm 90% sure my error is in the bottom line of code - seems to be something to do with the way quotes are used (which is confusing me a lot).
Correct code + explanation of where and why to use quotes would be much appreciated!
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
today = new Date();
date = today.getDate();
date = date - date%9;
date = date/9;
date = date%3;
arday = new Array("image 1", "image 2", "image 3");
linkday = new Array("link 1", "link 2", "link 3");
document.write("<a href= '" + linkday[date] + target="_blank" ><img src='" + arday[date] "'/> </a>");
// End -->
</SCRIPT>