In my case it's a simple example but in reality of what is going on in my page it isn't done as easily as what I illustrated. The actual animation is a class that instantiates and adds a div to the bottom of the page. During it's creation it also goes through the page and any link that has a rel="shadow" applied to it, it wires up a click handler to start it's own animation. So, I'm not necessarily starting the animation like
Code:
<a href="javascript:startanimation">start</a>
but instead it looks like
Code:
<a href="#" rel="shadow">start</a>
So what I'd like to do is put something in that animation function that is contained in the class that fires an event that my link can listen for. So it would actually look like
Code:
<a href="javascript:SetUpListener(FunctionToCallA);" rel="shadow">start a</a>
<a href="javascript:SetUpListener(FunctionToCallB);" rel="shadow">start b</a>