SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

DHTML Analogue Clock

Categories...
Client User Group
Internet Explorer
Language
JavaScript
Product
IE5
Task
Fun Stuff, Image Manipulation
Technology
Dynamic Style

Sponsored Links
Developer's Paradise : Inside Technique :
DHTML Analogue Clock
Submission by JonPerry

Go to the resource:
DHTML Analogue Clock

Add to Assistant

Short Description
Learn how to use Dynamic Expressions in IE5 to create an analogue clock.

Long Description
Dynamic Expressions in IE5 are a powerful way to manipulate the style properties of any element on your web-page. In this article, learn how to apply Dynamic Expressions to create an analogue clock.

Author
Jon Perry
Date/ Version
1/2/2000
Submission URL
http://www.SiteExperts.com/ie5/tips/ts03/page1.asp
Submission Date
Jan 2,2000
Last Update
Jan 3,2000
 

Discussion and Rate this Resource
Overall Rating: 4.5

JerryNixon on Dec 30, 2002 at 4:06:06 PMNo Rating

hi jon, this has nothing to do with the coolness of your application. nonetheless, i can't let it be left that long var names are slower. nope. no sir. not true.

let's even consider bandwidth. d versus dtmData. 6 extra letters is, what, 12 unicode bytes? let's say you use the var 100 times. that's 1200 bytes.

if you still had a 2400 baud modem it would only take you 1/2 a second to download that extra code. And who has a 2400 baud modem anymore?

once you load your code into memory and it has passed the engine's parser speed is - from then on - based on code quality (like loop construction).

small vars make it harder to have your code stolen. i can even see the argument of adding a ; or : at the end of every line and removing all carraige returns and renaming all vars to a single letter for performance reasons.

but who has to think like that anymore?

nonetheless, the clock is cool.

JonPerry on Feb 2, 2001 at 11:00:53 AMRating: 5

To answer Jerry, because long variable name take longer to type in. Because long variable names are harder to edit. Because long variable names take more memory. Because long variable names are slower than short ones.

For long variables names, they enhance readability, but not everything in life is a tutorial.

technodude1 on Feb 1, 2001 at 10:14:41 PMRating: 4

It's good... But one thing you might want to change is putting a "0" in front of the minutes or seconds if they're a one digit number.

EXAMPLE

1:5:4 -> 1:05:04
2:2:4 -> 2:20:04
5:3:6 -> 5:03:06

JerryNixon on Feb 24, 2000 at 5:25:41 PMNo Rating

Dynamic expressions are very cool. This is good work, though nearly useless. My question, not just for this work, but tons of samples I see on the web. What's with people not using sound naming practices? I mean, really, is d and t the value of date and time? Who knows. What about h and w? Height and width? Are they in string or integer? What's the deal with people using cryptic variable names? Are people trying to make their code hard to read? Dim dtmDate is the date and it is in datetime format - obviously. And Dim strWidth is a string, unlike intWidth which is an integer. It *can* be so easy! Why won't people let it be?

strFirstName = "Name"
strLastName = "Nixon"
strCondition = "frustrated"
bolEnabled = True
dtmUpdated = now()

Erik on Jan 4, 2000 at 6:46:11 AMRating: 4

Pretty neat but I still prefer the VML Analog clock. Good use of dynamic expressions though

erik

More Ratings/ Comments


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.