Ok..
I've tried putting some code together, but it's not working. I know I'm doing something daft somewhere, pointers appreciated!
In the <head> I've put the following:
CODE
<script TYPE="text/javascript">
<!--
var pDate= "20080401";
function checkDate(pDate){
var now=new Date();
var yy= now.getYear();
Tyy = yy.toString();
var mm= now.getMonth();
Tmm = mm.toString();
var dd= now.getDate();
Tdd = dd.toString();
var todayDate= Tyy+Tmm+Tdd;
}
//-->
</script>
I then have the following <body> tag:
CODE
<body background="bgsq.jpg" onload="checkDate()">
Further down the page, I have:
CODE
<td>
<script TYPE="text/javascript">
<!--
if (todayDate > pDate){
document.write("<b><a href="link.html">next day ></a></b>");
}
//-->
</script>
</font></p>
</td>
Not sure why this doesn't show, bearing in mind I think todayDate should be 20080427 and that I've set pDate to 20080401.
Thanks