shaneLost
03-17-2005, 12:32 AM
Hello all:
I have a question about JS. I have some JS that will check to see what month it is and display a message to the user. What I would really like for this JS to do is display a new homepage depending on what month it is. Does any one know of a way I can do this?
<script language="JavaScript" type="text/javascript">
<!--
var day = new Date()
<!-- shows new homepage for the holidays -->
function Page()
{
var day = new Date()
if (day.getMonth() ==2)
alert("hello");
else
alert("no");
}
//-->
</script>
Thanks again for any help!!
I have a question about JS. I have some JS that will check to see what month it is and display a message to the user. What I would really like for this JS to do is display a new homepage depending on what month it is. Does any one know of a way I can do this?
<script language="JavaScript" type="text/javascript">
<!--
var day = new Date()
<!-- shows new homepage for the holidays -->
function Page()
{
var day = new Date()
if (day.getMonth() ==2)
alert("hello");
else
alert("no");
}
//-->
</script>
Thanks again for any help!!