Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3048 - 02 March 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

Moon Ditty

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Posts: 41
Joined: Sat 06 Apr 2013 11:46 pm
Weather Station: Fine Offset with Solar
Operating System: Windows XP, 7 8 and 10
Location: TIrrannaville NSW Australia

Moon Ditty

Post by Warrandyte » Wed 07 Jun 2017 5:41 am

Just a quick little something to replace the moon image
it uses the MoonPercent Webtag and gets an appropriate image for that phase of the moon
like so:
theres a bit of code to go in the placeholder for the image, and the moon images need to be in the images/moon/directory relative to the page.
I've kept the code verbose so people can see and change
hope someone finds it useful.
Theres also a large script animated moon at http://www.warrandytefarm.com/moon_large.htm
all the files are in Image

Code: Select all

<script type="text/javascript">
var MoonPC=-<#MoonPercent>/100;
var ImageNum=0;
document.write("<img src=\"images/moon/moon_"+ImageNum+".png\"width=\"150px\" height=\"150px\"/>");

Post Reply