stevo 25 February 2009 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
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