how to make a horoscope program javascript?

Posted by: Admin  :  Category: Web Hosting

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

question from Jay : how to make a horoscope program in Javascript do
I have a problem on a chart type program in JavaScript. Because I just am a newbie, I do not know how to use or what (switch statements or if statements or if I need to add a little more). Can anyone help Best Answer:

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

reply Penumbra
Depends on how complex that is your horoscope. If you just want it a different message depending on the month view then a switch / case is ideal. I can not remember if allowed javascript string literals in a case statement. If it do not then you will have to map the months to whole numbers you zuerst.Wenn that daily reports have, or may have an algorithmic method, select a message and maybe then you’ll have to tweak the meaning a bit more complex than a switch / case, as it would be pretty boring manually write 365 possible outcomes. For example, say you have 36 possible messages, with “You will not have much luck today.” with which the 23 Message. Lets then say that the date of 21 August 2010 is. Then you could add get 8 + 21 + 2010 to 2039. Then do receive module 36-23, which means that 23 Message is displayed. To make it even more fun, one could add that if the day is odd (21 odd in this case) that all instances of ‘not’ be removed. So now the output is: “You are lucky today.” From there you can add to what you want creative expressions. Maybe even for years divisible by 6 all instances of “good” and “bad” are reversed?


Add your own answer in the comments!

Web Hosting Blog

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Leave a Reply

*