I can't get this to work; low end laptop with low end gpu. But is it anything like what Rsnake posted on ha.ckers.org?
Link: http://ha.ckers.org/blog/20070623/hiding-js-in-valid-images/
Link: http://ha.ckers.org/blog/20070623/hiding-js-in-valid-images/