Link to home
Create AccountLog in
Avatar of dynam_francis
dynam_francisFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Need help with javascript

I have permission to modify a script which is a special calendar.
Each of the cells has information on  a saint.
I'd like to replace that saint information with a date for example 7/25 for the 25th of July.
Furthermore I would like to have a European version of this date so it would show for example 25/7.
Could someone show me how to format an external file that has these dates?
Check out what I mean :-
http://newparadigmcreations.webs.com/test2
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of dynam_francis

ASKER

Thank you for that. I forgot to mention that I would like the start date to be the 26th of July - where can I initialise the calendar?
Without looking too closely, I would guess changing
today = new Date();
to
today = new Date(2013,6,26); // note month is from 0-11
Hmmm, when I do this, today appears as 2-17 unfortunately.
Try

thisPCMonth = 13; Kalend = 336;PopulateMonth("navigate")
Sorry for my ignorance - but where should I make this change - is this line 147, 150 or at the beginning i.e. line 75?
No, after the load. The code is horrific. I really have a bad taste in my mouth touching it.

Try adding

$(function() {
   thisPCMonth = 13; Kalend = 336;PopulateMonth("navigate")
});