|
-
Good Morning, Changing text on time of day
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
-
Senior Member
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?
-
Senior Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|