searson1
03-09-2007, 07:53 PM
Hi, I haver this script which works great. I would like to add a <br> command in to add other text as a seperate paragraph and also I would like to include a some text which can also act as a link. Could anyone advise please, I would appreciate your help. I am a complete novice at this stuff.
<script language="JavaScript">
<!--
calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year< 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44);
edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var monthname =
new Array ("January","February","March","April","May","June","July","August","September","October","November","December" );
document.write(dayname[day]+", ");
document.write(date+" ");
document.write(monthname[month]+" ");
document.write(+"2007");
// January is month 0
if ((month == 0) && (date == 1)) document.write(" - Mary, Mother of God");
document.write("<br></font>");
//-->
</script>
I have every day of the year, but thought that would be too long to include the whole lot.! LOL!
<script language="JavaScript">
<!--
calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year< 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44);
edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var monthname =
new Array ("January","February","March","April","May","June","July","August","September","October","November","December" );
document.write(dayname[day]+", ");
document.write(date+" ");
document.write(monthname[month]+" ");
document.write(+"2007");
// January is month 0
if ((month == 0) && (date == 1)) document.write(" - Mary, Mother of God");
document.write("<br></font>");
//-->
</script>
I have every day of the year, but thought that would be too long to include the whole lot.! LOL!