tag, on your page, and then edit the starting date you would like to use under the today=new date line. you must use numbers for month, day, and year. These instruction lines are invisible, and will not be seen on your page.
-
This script came from the Dummy Proof JavaScripts Site at: http://www.dummyproof.com/javascripts
Please visit the site for more easy to use JavaScripts to enhance your web pages.
*/
today = new Date();
bYear = 2007; // Start year
bMonth = 05; // Start month
bDay = 27; // Start day
tYear = today.getYear();
tMonth = (today.getMonth() ) + 1 ;
tDay = today.getDate();
tHour = today.getHours();
fYear = 0;
fMonth = 0;
fDay = 0;
fHour = 0;
x = 0;
y = 0;
z = 0;
a = 0;
b = 0;
c = 0;
function testMonth() {
if (y==4 || y==6 || y==9 || y==11) x=30
else if (y==2) x=28
else x=31
}
function testDay() {
fDay = (z - bDay) + tDay;
if (fDay > a) {
fMonth += 1;
fDay = fDay - a;
}
}
y = bMonth;
testMonth();
z = x;
y = bMonth;
testMonth();
a = x;
if (bMonth <= tMonth) {
fYear = tYear - bYear;
fMonth = (tMonth - bMonth);
testDay();
}
fYear = (tYear - bYear) - 1
fMonth = ((12 - bMonth) + tMonth) - 1;
testDay();
if (fMonth >= 12) {
fYear += 1;
fMonth -= 12;
}
// the following splits apart the dates recursively and replaces them with equiv graphics and displays.
with(Math) {
theYear=fYear;
tensYear=floor(theYear/10);
onesYear=theYear-(tensYear*10);
theMonth=fMonth
tensMonth=floor(theMonth/10);
onesMonth=theMonth-(tensMonth*10);
theDay=fDay
tensDay=floor(theDay/10);
onesDay=theDay-(tensDay*10);
var testArray = new makeArray("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
for (z=1; z<=12; z++) {
if (tMonth==z) {
var b=testArray[z]
}
}
for (z=1; z<=12; z++) {
if (bMonth==z) {
var c=testArray[z]
}
}
}
var page
page = " Today's date: " + b + " "+tDay+", " + tYear+". "
page += "Our Site has been up since "+ c + " " + bDay + ", "+bYear+" "
function makeArray() {
this.length = makeArray.arguments.length
for (var i = 0; i < this.length; i++)
this[i+1] = makeArray.arguments[i]
}
// -- End Hiding Here -->
C.A.L.M.
Community Advocates for Little Mountain
Coming Events
We stand for housing every Saturday
Concern about affordable housing and homelessness is strong and widespread. From Burns Lake to Princeton, from Revelstoke to Vancouver, we are a broad spectrum of religious groups, concerned citizens, advocacy groups and labour unions.
At Main & 33rd in Vancouver, we stand from 1:00 to 2:00 pm on Saturdays. Let's send a message to all levels of government:
"We aren’t going away. We will stand until there is a comprehensive
affordable housing program."
This is going to be a long campaign but we are up to it! Governments will
respond when enough people force them to discover that the sale of public land
and an uncontrolled housing market are not acceptable. Let’s continue to speak
for:
a permanent, national social housing program
a comprehensive provincial housing program that works with municipalities
and communities to build affordable housing for people at all income
levels
public land for non-market housing – no sale of public land to private
interests
improved access to social assistance, increased welfare rates and a higher
minimum wage
E-mail CALM Housing at calmhousing@hotmail.com with your Stand location and
sponsoring group name.
To order Stand kits, use the same e-mail address. Kits are $40 by mail, $25 if picked up in the Main and 33rd area of Vancouver. They include a turquoise ‘Homes for All’ banner, 8 turquoise scarves. We aren't sending out leaflets any longer; you will find the latest leaflets on the website.
Be sure to check www.my-calm.info/ for
leaflets, housing studies, testimonials, the latest news and more.