OLD CLOCK HELP

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   OLD CLOCK HELP
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
Hi All long time no see.


ok my prob is this...

i cannot seem to change the freaking setting on the clock for daylight saving time at site [ Register or login to view links on this board. ]


the following script is what the clock uses


///////////////////////////////////////////////////////////
// "Live Clock" script - MultiClock beta (3.1b)
// By Mark Plachetta (astroboy@zip.com.au)
//
// Get the latest version from:
// [ Register or login to view links on this board. ]
//
// Based on the original script: "Upper Corner Live Clock"
// available at:
// - Dynamic Drive (http://www.dynamicdrive.com)
// - Website Abstraction (http://www.wsabstract.com)
// ========================================================
// CHANGES TO ORIGINAL SCRIPT:
// - Gave more flexibility in positioning of clock
// - Added date construct
// - User configurable
// ========================================================
// This script is available free of charge, see the website
// for more information. Please check the website before
// e-mailing for help.
///////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////
/////////////// CONFIGURATION /////////////////////////////

// The following are DEFAULTS, and will be assumed if
// values are not given when creating a clock.

// Set the clock's font face:
var LC_Font_Face = "Verdana";

// Set the clock's font size:
var LC_Font_Size = "1";

// Set the clock's font color:
var LC_Font_Color = "#CBAC57";

// Set the clock's background color:
var LC_Back_Color = "transparent";

// Set any extra HTML to go either side the clock here:
var LC_OpenTags = "The time is: ";
var LC_CloseTags = "";

// Set the width of the clock (in pixels):
var LC_Width = 175;

// Display the time in 24 or 12 hour time?
// 0 = 24, 1 = 12
var LC_12_Hour = 1;

// How often do you want the clock updated?
// 0 = Never, 1 = Every Second, 2 = Every Minute
// If you pick 0 or 2, the seconds will not be displayed
var LC_Update = 1;

// Date Options:
// 0 = No Date, 1 = dd/mm/yy, 2 = mm/dd/yy,
// 3 = DDDD MMMM, 4 = DDDD MMMM YYYY
var LC_DisplayDate = 0;

// Abbreviate Day/Month names?
// 0 = No, 1 = Yes;
var LC_Abbrev = 0;

// Your GMT Offset:
// This will allow the clock to always be set to your local
// time, rather than that of the visitor's system Clock.
// Set to "null" to disable this feature.
var LC_GMT = null;
// Note that this does NOT take into account daylight savings.
// You should add 1 to your GMT offset if daylight savings is
// currently active in your area. null/1

///////////////////////////////////////////////////////////
/////////////// GLOBALS ///////////////////////////////////

// Basic Browser detection
var LC_IE = (document.all) ? 1 : 0;
var LC_NS = (document.layers) ? 1 : 0;
var LC_N6 = (window.sidebar) ? 1 : 0;
var LC_Old = (!LC_IE && !LC_NS && !LC_N6) ? 1 : 0;

// Initialize an array to store the clocks in:
var LC_Clocks = new Array();

// The following arrays contain data which is used in the
// clock's date function.
var LC_DaysOfWeek = new Array(7);
LC_DaysOfWeek[0] = ["Sunday","Sun"];
LC_DaysOfWeek[1] = ["Monday","Mon"];
LC_DaysOfWeek[2] = ["Tuesday","Tue"];
LC_DaysOfWeek[3] = ["Wednesday","Wed"];
LC_DaysOfWeek[4] = ["Thursday","Thu"];
LC_DaysOfWeek[5] = ["Friday","Fri"];
LC_DaysOfWeek[6] = ["Saturday","Sat"];

var LC_MonthsOfYear = new Array(12);
LC_MonthsOfYear[0] = ["January","Jan"];
LC_MonthsOfYear[1] = ["February","Feb"];
LC_MonthsOfYear[2] = ["March","Mar"];
LC_MonthsOfYear[3] = ["April","Apr"];
LC_MonthsOfYear[4] = ["May","May"];
LC_MonthsOfYear[5] = ["June","Jun"];
LC_MonthsOfYear[6] = ["July","Jul"];
LC_MonthsOfYear[7] = ["August","Aug"];
LC_MonthsOfYear[8] = ["September","Sep"];
LC_MonthsOfYear[9] = ["October","Oct"];
LC_MonthsOfYear[10] = ["November","Nov"];
LC_MonthsOfYear[11] = ["December","Dec"];

// This array controls how often the clock is updated, based
// on your selection in the configuration.
var LC_ClockUpdate = new Array(3);
LC_ClockUpdate[0] = 0;
LC_ClockUpdate[1] = 1000;
LC_ClockUpdate[2] = 60000;

///////////////////////////////////////////////////////////
/////////////// FUNCTIONS /////////////////////////////////

// For Version 4+ browsers, write the appropriate HTML to
// the page for the clock, otherwise, attempt to write a
// static date to the page.
function LC_CreateClock(Clock) {
if (LC_IE || LC_N6) { clockTags = '<span id="'+Clock.Name+'" style="width:'+Clock.Width+'px; background-color:'+Clock.BackColor+'"></span>'; }
else if (LC_NS) { clockTags = '<ilayer width="'+Clock.Width+'" bgColor="'+Clock.BackColor+'" id="'+Clock.Name+'Pos"><layer id="'+Clock.Name+'"></layer></ilayer>'; }

if (!LC_Old) { document.write(clockTags); }
else { LC_UpdateClock(LC_Clocks.length-1); }
}

// Set the update interval for each clock, and run any
// commands that may have been in <body onload="">
function LC_InitializeClocks() {
LC_OtherOnloads();
if (LC_Old) { return; }
for (i = 0; i < LC_Clocks.length; i++) {
LC_UpdateClock(i);
eval('var '+LC_Clocks[i].Name+' = setInterval("LC_UpdateClock("+'+i+'+")",'+LC_ClockUpdate[LC_Clocks[i].Update]+')');
}
}

// Update a clock with the new time/date.
function LC_UpdateClock(Clock) {
Clock = LC_Clocks[Clock];

// Get all our date variables.
var time = new Date();
if (!isNaN(Clock.GMT)) {
var offset = time.getTimezoneOffset();
if (parseInt(navigator.appVersion) == 4 && LC_NS) { offset += 60; }
if (navigator.appVersion.indexOf('MSIE 3') != -1) { offset = offset * (-1); }
time.setTime(time.getTime() + offset*60000);
time.setTime(time.getTime() + Clock.GMT*3600000);
}
var day = time.getDay();
var mday = time.getDate();
var month = time.getMonth();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
var year = time.getYear();

// Fix the "year" variable for Y2K.
if (year < 1900) { year += 1900; }

// Add appropriate th/st/rd if displaying full date.
if (Clock.DisplayDate >= 3) {
mday += "";
abbrev = "th";
if (mday.charAt(mday.length-2) != 1) {
if (mday.charAt(mday.length-1) == 1) { abbrev = "st"; }
else if (mday.charAt(mday.length-1) == 2) { abbrev = "nd"; }
else if (mday.charAt(mday.length-1) == 3) { abbrev = "rd"; }
}
mday += abbrev;
}

// Set up the hours for either 24 or 12 hour display.
var LC_AMPM = "";
if (Clock.Hour12 == 1) {
LC_AMPM = "AM";
if (hours >= 12) { LC_AMPM = "PM"; hours -= 12; }
if (hours == 0) { hours = 12; }
}
if (minutes <= 9) { minutes = "0"+minutes; }
if (seconds <= 9) { seconds = "0"+seconds; }

// This is the actual HTML of the Clock. If you're going to play
// around with this, be careful to keep all your quotations in tact.
var html = '<font color="'+Clock.FntColor+'" face="'+Clock.FntFace+'" size="'+Clock.FntSize+'">';
html += Clock.OpenTags;
html += hours+':'+minutes;
if (Clock.Update == 1) { html += ':'+seconds; }
if (Clock.Hour12) { html += ' '+LC_AMPM; }
if (Clock.DisplayDate == 1) { html += ' '+mday+'/'+(month+1)+'/'+year; }
if (Clock.DisplayDate == 2) { html += ' '+(month+1)+'/'+mday+'/'+year; }
if (Clock.DisplayDate >= 3) { html += ' on '+LC_DaysOfWeek[day][Clock.Abbreviate]+', '+mday+' '+LC_MonthsOfYear[month][Clock.Abbreviate]; }
if (Clock.DisplayDate >= 4) { html += ' '+year; }
html += Clock.CloseTags;
html += '</font>';

// Write the clock to the layer.
if (LC_NS) {
var layer = document.layers[Clock.Name+"Pos"].document.layers[Clock.Name].document;
layer.open();
layer.write(html);
layer.close();
} else if (LC_N6 || LC_IE) {
document.getElementById(Clock.Name).innerHTML = html;
} else {
document.write(html);
}
}

// Creates each clock object and stores them for updating.
function LiveClock(vars) {
if (!vars) { vars = ''; }
vars = vars.split(',');
this.Name = 'LiveClock' + LC_Clocks.length;
this.FntFace = (vars[0]) ? vars[0] : LC_Font_Face;
this.FntSize = (vars[1]) ? vars[1] : LC_Font_Size;
this.FntColor = (vars[2]) ? vars[2] : LC_Font_Color;
this.BackColor = (vars[3]) ? vars[3] : LC_Back_Color;
this.OpenTags = (vars[4]) ? vars[4] : LC_OpenTags;
this.CloseTags = (vars[5]) ? vars[5] : LC_CloseTags;
this.Width = (vars[6]) ? vars[6] : LC_Width;
this.Hour12 = (vars[7]) ? vars[7] : LC_12_Hour;
this.Update = (vars[8]) ? vars[8] : LC_Update;
this.Abbreviate = (vars[9]) ? vars[9] : LC_Abbrev;
this.DisplayDate = (vars[10]) ? vars[10] : LC_DisplayDate;
this.GMT = (vars[11]) ? vars[11] : LC_GMT;
LC_Clocks[LC_Clocks.length] = this;
LC_CreateClock(this);
}

///////////////////////////////////////////////////////////
/////////////// INITIALIZATION ////////////////////////////

// Save any extra onload events so we don't overwrite them.
LC_OtherOnloads = (window.onload) ? window.onload : new Function;
window.onload = LC_InitializeClocks;



I have tried adding the null/1 like it says in scrippt but nothing happens


TY
Robert



Attached Files
liveclock.js (9.12 KB, Downloaded: 5231 Time(s))


Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
You want it set at daylight savings time or your time? Setting it to null means that it will run off the computer time if you change that that to say -5 then it will show my time eastern. Try changing that till you get the time you want.

// Your GMT Offset:
// This will allow the clock to always be set to your local
// time, rather than that of the visitor's system Clock.
// Set to "null" to disable this feature.
var LC_GMT = -5;
// Note that this does NOT take into account daylight savings.
// You should add 1 to your GMT offset if daylight savings is
// currently active in your area. null/1




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
OK telli i tried setting it to -5 and for sum reason it doesn't change clock


i want it set to eastern time


i have attached both the js and the menu htm that i am working with


PLSSSSSSSSSSSSSSSSSSSSSSSS help what am i doing wrong



Attached Files
liveclock.js (9.11 KB, Downloaded: 5232 Time(s))


Back to top Reply with quote
#4   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
grrrrrrrrrrrrrrrrrrrrrrrrrr srry

[ Register or login to view links on this board. ]



Back to top Reply with quote
#5   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Ok just use the top script src= not the bottom part where your league name was i added it all in this file and i tested it just upload it.



Attached Files
liveclock_127_FIXED.js (9.31 KB, Downloaded: 5232 Time(s))



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
ok telli don't call me a idiot even tho i am but i did what you said on my local site and now clock doesn't even appear


i have zippped the htm and th js


once again plssssssssssssssssss help



Attached Files
CLOCK.zip (5.81 KB, Downloaded: 5233 Time(s))


Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Worked fine for me make sure you have the js in the right place according to your page it is in the images\menu\ directory.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
OMG duhhhhhhhhhhh lol ty telli would help iif i had local files set up same as on web huh



like i told taut see what happens when ya don't do this for 3 months ya forget the simplest thingys



Back to top Reply with quote
#9   
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
lmao, Rob......glad to see ya again and welcome back

taut



Back to top Reply with quote
#10   
GoddsEgo
PayPal Donation
CZ Moderator
Status: Offline
Joined: Jun 26, 2003
0.15 posts per day
Posts: 1211
Points: 69,166
 Yahoo Messenger  
LOL ty Taut



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum