HighDots Forums  

Javascript ?: JS clock on two lines?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Javascript ?: JS clock on two lines? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DiMa
 
Posts: n/a

Default Javascript ?: JS clock on two lines? - 07-15-2003 , 01:13 PM






We're trying to put 3 javascript clocks (3 time zones) on one page. We can get
that working, but the client has made it more difficult. He wants the time on
one line and the date on the next line.

London: 08:30
Tuesday, July 15, 2003

We can get all of it on one line. We can get the time by itself. But we can't
split the two.

Anyone have any ideas?
www.czar-partners.com

Thanks in advance!
--
--
DiMa
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to your
posts:
news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamwea ver
http://www.macromedia.com/support/dreamweaver/technotes.html
http://www.projectseven.com/faqbase
http://www.dreamweaverFAQ.com

http://www.macromedia.com/support/forums/etiquette.htm
DiMa Design > From Lines...to Designs
http://www.dimadesign.net





Reply With Quote
  #2  
Old   
danilocelic
 
Posts: n/a

Default Re: Javascript ?: JS clock on two lines? - 07-15-2003 , 01:57 PM






DiMa wrote:

Quote:
We're trying to put 3 javascript clocks (3 time zones) on one page. We can get
that working, but the client has made it more difficult. He wants the time on
one line and the date on the next line.

London: 08:30
Tuesday, July 15, 2003

We can get all of it on one line. We can get the time by itself. But we can't
split the two.
Hey DiMa,

Look in liveclock.js for this line (~ line 127:
if(c.DisplayDate>=3){html+=' on '+LC_DaysOfWeek[day][c.Abbreviate]+',
'+md+' '+LC_MonthsOfYear[mnth][c.Abbreviate]}


where it has:
' on '
replace that with:
'<br>'
and see how that works for you.

--
Enjoy,
Danilo Celic

Quote:
Extending Knowledge, Daily
http://www.communityMX.com/


Reply With Quote
  #3  
Old   
DiMa
 
Posts: n/a

Default Re: Javascript ?: JS clock on two lines? - 07-15-2003 , 02:18 PM



I think Steve tried that, but lemme try and see if that was tried. (huh?)

Thanks Dan...maybe if this works, I'll stop passing around photos of "Dan being
one with the tree" and "Dan's Interpretive Dance"

--
--
DiMa
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to your
posts:
news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamwea ver
http://www.macromedia.com/support/dreamweaver/technotes.html
http://www.projectseven.com/faqbase
http://www.dreamweaverFAQ.com

http://www.macromedia.com/support/forums/etiquette.htm
DiMa Design > From Lines...to Designs
http://www.dimadesign.net


"danilocelic" <danilo (AT) shimmerphase (DOT) com> wrote

Quote:
DiMa wrote:

We're trying to put 3 javascript clocks (3 time zones) on one page. We can
get
that working, but the client has made it more difficult. He wants the time
on
one line and the date on the next line.

London: 08:30
Tuesday, July 15, 2003

We can get all of it on one line. We can get the time by itself. But we
can't
split the two.

Hey DiMa,

Look in liveclock.js for this line (~ line 127:
if(c.DisplayDate>=3){html+=' on '+LC_DaysOfWeek[day][c.Abbreviate]+',
'+md+' '+LC_MonthsOfYear[mnth][c.Abbreviate]}


where it has:
' on '
replace that with:
'<br>'
and see how that works for you.

--
Enjoy,
Danilo Celic

| Extending Knowledge, Daily
| http://www.communityMX.com/




Reply With Quote
  #4  
Old   
Steve Fleischer
 
Posts: n/a

Default Re: Javascript ?: JS clock on two lines? - 07-15-2003 , 02:24 PM



danilocelic <danilo (AT) shimmerphase (DOT) com> wrote in
news:bf1fb3$jc3$1 (AT) forums (DOT) macromedia.com:

Quote:
where it has:
' on '
replace that with:
'<br>'
and see how that works for you.
Thanks Danilo. I have been bashing my head against a wall trying to sort
out a script to do what we want. DiMa kept telling me to ask for help here
but I was determined to sort it out. Idiot! :-/

The annoying thing is I used the <br> tag in a piece of code I got from the
Maxx Blade script generator - I just didn't think to put it in this script.

Thanks again - you saved my sanity! The results are here:
http://www.czar-partners.com

(And now I have to get ready for a "I told you so, dopey dope!" from DiMa!
LOL!)

--
Steve
Hong Kong


Reply With Quote
  #5  
Old   
DiMa
 
Posts: n/a

Default Re: Javascript ?: JS clock on two lines? - 07-15-2003 , 02:44 PM



Eh??

--
--
DiMa
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to your
posts:
news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamwea ver
http://www.macromedia.com/support/dreamweaver/technotes.html
http://www.projectseven.com/faqbase
http://www.dreamweaverFAQ.com

http://www.macromedia.com/support/forums/etiquette.htm
DiMa Design > From Lines...to Designs
http://www.dimadesign.net


"lebisol" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
OT:
Danilo Celic = ex. YU?





Reply With Quote
  #6  
Old   
danilocelic
 
Posts: n/a

Default Re: Javascript ?: JS clock on two lines? - 07-15-2003 , 03:13 PM



"lebisol" webforumsuser (AT) macromedia (DOT) com wrote:

Quote:
OT:
Danilo Celic = ex. YU?
If you mean am I from Yugoslavia, then the answer is no, not really.
Although my great-grandfater was from Spitz. He dies well before I was
born. Don't know much about him or his home town or culture, as I didn't
get to talk with my grandfater much as my parents were in the US Air
Force and we travelled too much to get close to him.

--
Enjoy,
Danilo Celic

Quote:
Extending Knowledge, Daily
http://www.communityMX.com/


Reply With Quote
  #7  
Old   
danilocelic
 
Posts: n/a

Default Re: Javascript ?: JS clock on two lines? - 07-15-2003 , 03:15 PM



Steve Fleischer wrote:

Quote:
Thanks Danilo. I have been bashing my head against a wall trying to sort
out a script to do what we want. DiMa kept telling me to ask for help here
but I was determined to sort it out. Idiot! :-/
NP Steve.

I get like that a lot as well, don't sweat it. Glad I could help.

Quote:
(And now I have to get ready for a "I told you so, dopey dope!" from DiMa!
LOL!)
Just think about the times where she wasn't right on the money (there
were some weren't there??) and it'll be alraight, buddy.

--
Enjoy,
Danilo Celic

Quote:
Extending Knowledge, Daily
http://www.communityMX.com/


Reply With Quote
  #8  
Old   
DiMa
 
Posts: n/a

Default Re: Javascript ?: JS clock on two lines? - 07-15-2003 , 06:22 PM



Quote:
Just think about the times where she wasn't right on the money (there
were some weren't there??) and it'll be alraight, buddy.

Yeah...remember that time, Steve?


--
--
DiMa
--------------------
WEB FORUM USERS: Please log on to the Newsgroup for quicker replies to your
posts:
news://forums.macromedia.com/macromedia.dreamweaver
For Answers, check here first:
http://groups.google.com/advanced_group_search?q=+group:macromedia.dreamwea ver
http://www.macromedia.com/support/dreamweaver/technotes.html
http://www.projectseven.com/faqbase
http://www.dreamweaverFAQ.com

http://www.macromedia.com/support/forums/etiquette.htm
DiMa Design > From Lines...to Designs
http://www.dimadesign.net


"danilocelic" <danilo (AT) shimmerphase (DOT) com> wrote

Quote:
Steve Fleischer wrote:

Thanks Danilo. I have been bashing my head against a wall trying to sort
out a script to do what we want. DiMa kept telling me to ask for help here
but I was determined to sort it out. Idiot! :-/

NP Steve.

I get like that a lot as well, don't sweat it. Glad I could help.

(And now I have to get ready for a "I told you so, dopey dope!" from DiMa!
LOL!)


--
Enjoy,
Danilo Celic

| Extending Knowledge, Daily
| http://www.communityMX.com/




Reply With Quote
  #9  
Old   
lebisol webforumsuser@macromedia.com
 
Posts: n/a

Default Re: Javascript ?: JS clock on two lines? - 07-16-2003 , 11:55 AM



Hi Danilo!!
Yes that was what I was wondering.....you have rather "common" name from that area....anyhow I was just wondering if you were, that's all :-)




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.