WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Topic started by: anchorageweather on December 28, 2007, 10:26:19 AM

Title: Working on "next Solstice/Equinox" script
Post by: anchorageweather on December 28, 2007, 10:26:19 AM
Hello All:

For the longest time, I've been trying to add some code to my page that says something like:

"Time until the next Solstice/Equinox:  11 weeks, 5 days, 13 hours, and 40 minutes"

When the countdown ends - it should start up again using the next equinox/solstice.

I have yet to be able to code it myself or find it on the web.  The code I wrote could only show the time from one Spring Equinox to the next  :-(

Well, I finally found some free javascript that is close to what I want; however, it can only show a countdown to the four individual events, not a countdown until the "next" event.  Here is an example:

http://eetee.us/temp/ohwow3.html

The code is here:

http://eetee.us/temp/ohwow3.txt

I think the code can be modified to do what I want; however, its WAY over my head. Can anyone see an easy way to "tweak" the JS to generate the one line I need (above)?

Fyi, I made a quick reference page to show what some of the JS calls do in the code:

http://eetee.us/temp/ohwow2.html

I guess I should add that my site can use PHP as well  :-)

FWIW, heres another site that has the four events countdown:

http://www.archaeoastronomy.com/countdowns.shtml



Any help would keep me from blowing my brains out  ](*,)
Title: Re: Working on "next Solstice/Equinox" script
Post by: anchorageweather on January 13, 2008, 12:27:55 AM
I was able to obtain this script and add it to my site.  Thanks for all who tried to help  =D>