a8le
04-04-2007, 04:54 AM
hi all,
i do many things i do to make my site visitors feel at home during the holidays on my site, ie... making the background red on valentines day and such. currently, i am looking to display a different message for each holiday in a give section of my site (http://www.noteful.com)...
in the white bar directly underneath the black bar. thats where i want the "holiday messages" to go... right now, i have three messages randomly displayed. what i am looking for is similar to my "month scrolling message", right below the mentioned area... but for a specific month + day. so i know i will be using: getMonth(); and getDate(); together somehow... how?
okay... there's more... i still want the three messages to be displayed but on select holidays, i want to display something that is specific for that day. so how do i integrate this... into that...
var rna=Math.floor(Math.random()*3);
switch(rna){
case 0:
document.write('message1');
break
case 1:
document.write('message2');
break
case 2:
document.write('message3');
break
}
thanks in advance,
a8le.
i do many things i do to make my site visitors feel at home during the holidays on my site, ie... making the background red on valentines day and such. currently, i am looking to display a different message for each holiday in a give section of my site (http://www.noteful.com)...
in the white bar directly underneath the black bar. thats where i want the "holiday messages" to go... right now, i have three messages randomly displayed. what i am looking for is similar to my "month scrolling message", right below the mentioned area... but for a specific month + day. so i know i will be using: getMonth(); and getDate(); together somehow... how?
okay... there's more... i still want the three messages to be displayed but on select holidays, i want to display something that is specific for that day. so how do i integrate this... into that...
var rna=Math.floor(Math.random()*3);
switch(rna){
case 0:
document.write('message1');
break
case 1:
document.write('message2');
break
case 2:
document.write('message3');
break
}
thanks in advance,
a8le.