This is a discussion on "JS issue" within the JavaScript Forum section. This forum, and the thread "JS issue are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
JS issue
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
JS issue
Built this text generator depending on the month, but it does not work, can someone please check to see where I have gone wrong please:
|
|
|
|
#2
|
|||
|
|||
|
Re: JS issue
Try this:
|
|
#3
|
|||
|
|||
|
Re: JS issue
It works up to August then drops out and I thought the months were one behind what they were on a calendar,
0=January 1=February 2=March 3=April 4=May 5=June 6=July 7=August 8=September 9=October 10=November 11=December |
|
#4
|
|||
|
|||
|
Re: JS issue
what browser are you using cause it works fine here in FireFox
|
|
#5
|
|||
|
|||
|
Re: JS issue
It works at the moment in FF & IE but if you advance you clock to August and beyond it does not display any text.
Am I right about the month codes for JS though? I am using FF to answer your question! |
|
#6
|
|||
|
|||
|
Re: JS issue
Well sadly I made the mistake of forwading my clock to october and then 40 million reminders came up (really must stop my phone synching with the pc) but I see what you mean....
to answer your question the value returned by getMonth() is a number between 0 and 11. January is 0, February is 1 and so on. I have adapted the code and it works ok here but again I cant forward my clock...
|
|
#7
|
|||
|
|||
|
Re: JS issue
Sorted thank you all very much, until next time!!!
|
![]() |
| Tags |
| js issue |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Issue in IE6 | aholmes | Web Page Design | 7 | Jul 13th, 2007 10:00 |
| CSS issue in IE7 | bluetech | Web Page Design | 6 | Jul 3rd, 2007 15:36 |
| css issue | acrikey | Web Page Design | 4 | May 24th, 2007 16:01 |
| Help Odd Issue? | drappendix | Web Page Design | 8 | Aug 9th, 2006 17:53 |
| IE issue | Pheonix | Web Page Design | 2 | Dec 2nd, 2005 21:58 |