Hiya guys I really hope you can help me out here. I have been breifed to design a page with a competition banner, only i want this banner to be visable during a particular time period. Live date for it is on a saturday and i wont be here to publish. I was hoping someone could help me out with some coding that would allow the default page to display a particular part of the table with the banner on the competition day. Here is what Ive managed to come up with
Any suggestion or guildence will be greatfully appreciated.
Thanks in advance
"He that asks a question is a fool for a moment, he that never asks a question is a fool all his life
Code:
<script language="JavaScript"><!--
var today = new Date();
var number = today.getDate() + 1;
if (number>20)
{
<!--document.write('<th height="81" background="images/comp_strrap.jpg" scope="row"><a href="[URL unfurl="true"]http://click.dixons.co.uk/scripts/SComp/competition_d1.asp"><img[/URL] src="images/transparent.gif" width="729" height="58" border="0"></a>');
('<th height="81" background="images/comp_strrap.jpg" scope="row"><a href="[URL unfurl="true"]http://click.dixons.co.uk/scripts/SComp/competition_d1.asp"><img[/URL] src="images/transparent.gif" width="729" height="58" border="0"></a>
</th>')
}
//--></script>
Any suggestion or guildence will be greatfully appreciated.
Thanks in advance
"He that asks a question is a fool for a moment, he that never asks a question is a fool all his life