« New Rule: Don't edit files on mediaShe was kind of stupid, I guess »

New Feature: Clock

05/27/10

Permalink 11:42:30 pm, by Paul ROBINSON, 329 words   English (US)
Categories: Announcements [A]

New Feature: Clock

[Update 2010/07/01]The clock was lost when I upgraded to the new version of B2 Evolution. I like it, so I have to re-install the change.[End Update]

If you've ever read this blog before, or you've ever seen the B2Evolution blog software that runs this blog, you'll notice something new here. The (digital) clock that appears on the right side of the page (for most of the skins; one skin has no right side and the clock appears on the top).

I decided to do a little "surgery" to the code of this blog in order to get the clock inserted. It requires creating a page to define the clock, changing the main page of every skin to insert the clock, and include a Javascript function to change the time each second. Oh, and yes, if you're reading this blog and your clock gets to midnight, the date changes too.

What's the next step? Put it an analog clock. Actually, I have one; on the "custom" skin, about 1/2 way down I include an analog clock from a time service. Only thing is, this calls a Flash animation and an external function library, I'm figuring the whole thing can be done with Javascript, locally. (Actually, I've seen it done; someone programmed a text-based clock to follow the mouse. But what I'm considering is actually drawing on the screen, something I just discovered can be done at run-time.) I remember, maybe 25 years ago, that there was a program I saw, written in ordinary Basic, that actually drew a clock, with hour, minute and second hand, that refreshed each second. So it can be done, it's not that hard.

Oh, there is a slight difference. Javascript runs on your computer, so the time shown on the top right of this blog is the local time where you are. The analog clock I use (on the "custom" skin) shows the time on the East Coast. So the two clocks may not be the same.

February 2012
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      
Welcome to My blog! This is where I store my thoughts so that I can come back to them at some point in the future. This allows me a place like a journal to keep what I'm thinking about. But anyone else is welcome to visit; I make this place public so that other people can hear what I'm thinking.

This is where I make comments on any subject I find of interest. My political comments are in the Politics section, and technical items are in the Computers section. Note, if you want to make a comment, e-mail it to me at paul@paul-robinson.us. I am sorry that I had to disable comments, but after I had deleted the 300th worthless piece of spam comment on this blog and receiving exactly zero valid comments, I decided to stop allowing spammers to excrement all over me and my blog. If you have *anything* at all to say, send it to me in e-mail; if it is even the slightest bit relevant - even if I don't agree with it, I will post it. (As soon as I find a way to stop spammers from posting junk I'll allow direct comments.) Note that if you are a visitor and post a comment, it defaults to "draft" meaning I have to approve it before it is visible, so if you're posting spam, don't bother, nobody will see it.

Search

XML Feeds

multiblog engine