Hi all,
I cant figure out how to make text come up saying "good morning" or "good afternnon" depnding on the time of day.. any help on this would be greatly apreaciated
-thanks
Printable View
Hi all,
I cant figure out how to make text come up saying "good morning" or "good afternnon" depnding on the time of day.. any help on this would be greatly apreaciated
-thanks
Hi,
myDate = new Date();
hours = myDate.getHours();
if (hours < 12) {
out = "good morning!";
} else {
out = "good afternoon!";
}
I guess you could add other conditions for stuff like good evening etc
how do i get it to send "good morning" ect.. to a dynamic text box?
Make a dynamic textbox and give it the variable name out (assuming the textbox is in the same timeline as the code)
lol, i did that.. but i see what i did.. stupid mistake, i got it now
thanks!