Skip to content

24 ways to impress your friends

Vote down?

stevo

Hi,
great work!
One thing I’d like to add:
I changed the if statement from

obj.tagName == ‘IMG’ && obj.src.match(/\.png$/i) !== null

to

(obj.tagName == ‘IMG’ || (obj.tagName == ‘INPUT’ && obj.type == ‘image’)) && obj.src.match(/\.png$/i) !== null

That will also fix png pictures in an Image Button (input type=“image” src=”…”)

Stevo