06-14-2011, 06:10 PM
PM User |
Join Date: Aug 2006
Thanked 477 Times in 471 Posts
Comments in RED
Originally Posted by Soliloquent
I hate saying it, but I'm still learning java, and I need to ask a few dumb questions. What is the breakdown of this script? I understand about half of what it is doing, but not all of it.
That being said, the following are for the script in post #2
I know 11.jpg and 21.jpg are the two images, the HH >= are the hours of 8-6, but will they be set to the server time or local time of the customer? We have several users on pacific time and we are central, and need it to always be on central time.
AFAIK, it is the server time setting. There are correction functions for GMT time zones.
The DOW >= is day of the week? That's where I get confused lol, what does DOW do and what are appropriate changes to be made to it? Such as holidays, I would go and change the script for a few days absence.
DOW is formed from the Date() function to give you the Day_of_Week for the date specified, which is 'now' in the script.
Values returned are 0..6 which represent 'Sunday'..'Saturday'.
And I think the 'logos' part of the script is for the images. logos  is the main image to display during the times set and logos  is for the rest of the time?