Nov 03 2010 Published by under MediaCreeper

I just figured out how to add some fault-protection, as sort of fallback, if loading of the badge would fail. By adding onerror="this.src='http://mediacreeper.se/image';" to the badge-code which is pasted into pages it makes the badge a little more fault-resilient.

I know, the onerror event isn’t supported everywhere but Firefox and for all I know, MSIE supports it. It breaks validation of XHTML 1.0 Strict.

2 responses so far