hello folks, my problem is:
my boss wants me to have our website changed every season, and every Special day like Labour day and stuff!
well its pretty easy with a constant day and month
here my code
so the index_sommer.html should be from 21 of march to the 21 of june can u help me i'm not good at that == => && stuff thanks in advance
my boss wants me to have our website changed every season, and every Special day like Labour day and stuff!
well its pretty easy with a constant day and month
here my code
Code:
function shiftsource()
{
jetzt=new Date();
Tage = jetzt.getDate();
Monate = jetzt.getMonth();
if (Tage == 1 && Monate == 4) window.location.href="index_mai.html";
if (Tage == 21 && Monate == 2 >= Tage == 21 && Monate ==5) window.location.href="index_sommer.html";
}
so the index_sommer.html should be from 21 of march to the 21 of june can u help me i'm not good at that == => && stuff thanks in advance