Hallo Thomas,
[...]
Probiere es so:
Elm.className='GapSpan';
Elm.setAttribute("onclick", 'DoSthg()', true);
oder
Elm.onclick=DoSthg; // ohne ()!
oder
Elm.onclick=function(){DoSthg()};
Danke - an das className hätte ich auch denken können ... Das event-Setzen probiere ich und hoffe mal.
Danke + Grüße
Michael