| | |
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.
![]() |
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
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array beta browser captchaformproblem cart child class close codes column css date debugger decimal dependent design disablefirebug dom download editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe index java javascript javascripthelp2020 jquery jsf jsp jump libcurl listbox maps masterpage math media menu mp4 object onerror onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming prototype rated rating redirect safari scale scriptlets scroll search security select software star starrating stars synchronous toggle unicode variables w3c web webservice \n






