View Single Post
Old 12-14-2005, 07:51 AM   #4 (permalink)
TheProf
Crazy
 
Quote:
Originally Posted by JinnKai
You don't need ; on breaks, in Javascript at least.

This code seems to run fine on my box; I just make a blank html and inserted the Script. This sounds like an issue with your CMS or how this jscript is integrated with your other code (if any).
I came to that conclusion by doing the same thing. It seems to be a problem with how the CMS is running the script.
Quote:
Originally Posted by JinnKai
That said, wouldn't it be simpler to write it this way? It seems a bit clunky to make an switch statement for 24 cases when you only have a few options;
<snipped great code>
Just a suggestion.. this will even work if you decide to expand to include the different prayers for each time.. just change the document.write string.
Thank you very much! That is far more elegant code than the brute force one I had.

Now if only I can get it to work in the CMS

thanks again
TheProf is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76