spheric,
I'm shooting from the hip a little bit here.
Have you tried changing the "onclick" call to simply invoke the alert method? That way you can check whether the event is failing, or if the code is failing.
If the event is failing, you're going to have to add the onclick event after the fact, by starting with
- document.getElementById('productThumbs')
and then selecting out the
img
element by going to the
childNodes
- document.getElementById('productThumbs').childNodes[5]
(NOTE: you may have to juggle the index a little to get the node number correct. I am not highly practiced in this regard, so you'll have to be patient with me)
And, finally adding an event handler...
- document.getElementById('productThumbs').childNodes[5].onclick = function(){alert('test me');}
As I said, just a sketch of how to get there.
Good Luck!
Oralloy