> Am I approaching this the wrong way?
If you're using eval(), it's *definitely* the wrong way.
See the touchups I made here:
http://jsfiddle.net/Dfa5h/1/
· you can chain addEvent right on the result of $$(). $$() returns an
array of Elements, and you can run any Element method, such as
addEvent() on Elements as well, and it will map each item in the array
to the method
· use data-* attributes and you don't need to pollute the href
attribute, which should be useable in scriptless environments or at
the very least give a nice display in the status bar
· simple split() instead of eval -- eval must be destroyed
-- Sandy