| | |
Display message based on a date range
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2008
Posts: 2
Reputation:
Solved Threads: 0
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
I'm just starting out and could really use the help.
Thanks
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.
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.
•
•
Join Date: Aug 2008
Posts: 2
Reputation:
Solved Threads: 0
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.
> I've come up with a solution and now I'm addressing the issue of mozilla and ie rendering
> different results on getYear.
Linky
> different results on getYear.
Linky
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
![]() |
Similar Threads
- Firefox Compatibility help with script (JavaScript / DHTML / AJAX)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Here is the doc file for the assignment (C++)
- New to C and needing some guidance (C)
- not-a-virusadware (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: About right click
- Next Thread: Webcam Refresh Script
Views: 1439 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxcode ajaxexample ajaxhelp animate array automatically autoplay beta boarder box button captcha card cart codes column css date debugger decimal design developer dom download element embed enter error events firefox firehose flash focus form frameworks getselection google gwt hint html htmlform ie7 iframe image() index java javascript javascripthelp2020 javascripts jawascriptruntimeerror jquery jsp listbox maps marquee masterpage menu microsoft mimic mp4 offline onmouseover parameters paypal php player position post problem programming prototype rating redirect regex safari scale scriptlets search select size sources sql starrating textarea toggle tweet twitter validation variables w3c web webkit webservice website window windowofwords xml xspf






