This sample uses the srcElement property of the event object to determine which marquee has fired the onfinish event.
mqLooper1 this marquee loops twice
[Right-click and choose View Source from the shortcut menu.]