pennypacker.net: Mac OS X Dock Redux

Mac OS X Dock Redux

After seeing google's little homage to the Mac OS X dock, I decided to go back and revamp mine a bit. For simplicity's sake, I took a nod from them, and did away with creating a list. That got rid of a few battles and the more CPU intensive routines that I was using.

So now I have a new version of the Javascript Dock, though this one has a few new bugs. I've been messing with it all day long and decided to take a rest and post progress.

So here's Mac OS X Javascript Dock v2.

What about it was causing grief? Well, two things actually. The first thing is getting my dynamically generated spans to appear in both Safari and Firefox. It's a CSS issue, and if it weren't for the movement, I'd have it working. But as it is, this one is best in Firefox.

The other issue I was having was setting the zoom effect on a timer so that rather than zooming in all the way instantly, it would gradually zoom in and then back out. However this is where my javascript n00bness really shines: I don't know how to do it effectively. Short of writing loops designed to waste CPU time, I'm at a loss on this one. The biggest problem is that I can't pass a function with an argument with setTimeout().

Oh, the joys of learning.

under:
Web Development
Posted on
2005-03-17

Comments:

There are no comments on this article.

This article is closed to further commentary. But you can always contact me directly.

Skip the sidebar

All things related to web design and development with a nice focus on using standards and accessibility

Recent Articles
Badges
  1. XHTML
  2. CSS
  3. 508
  4. RSS