943,648 Members | Top Members by Rank

Ad:
Aug 3rd, 2008
0

Display message based on a date range

Expand Post »
I did a search of this forum and didn't find anything on this issue. I want to display a specific message based on a date range. For example if it's June 10, I would like to display the message "Schools out! Enjoy your summer break." I would like this message then to be displayed the whole summer. Then in August I'd like a new message to appear. Something like "Heading back to school" and have that appear until Sept when a new message will be displayed.

I'm just starting out and could really use the help.

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jsl11 is offline Offline
2 posts
since Aug 2008
Aug 3rd, 2008
0

Re: Display message based on a date range

what programing language are you looking to do this with?

if PHP you could do it by using the date function to get the current date and then use an if statement to sellect the message to print out.
Reputation Points: 12
Solved Threads: 3
Newbie Poster
jel3 is offline Offline
18 posts
since May 2008
Aug 3rd, 2008
0

Re: Display message based on a date range

My bad, I just thought everyone would know what I was thinking. I am using java script. I've come up with a solution and now I'm addressing the issue of mozilla and ie rendering different results on getYear. I guess that can be addressed through determining a browser and making a function call based on the browser type.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jsl11 is offline Offline
2 posts
since Aug 2008
Aug 4th, 2008
0

Re: Display message based on a date range

> I've come up with a solution and now I'm addressing the issue of mozilla and ie rendering
> different results on getYear.

Linky
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: About right click
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Webcam Refresh Script





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC