Μικρή συμβουλή Javascript...OnError για εικόνες... (ελληνικά (Greek))

Μικρή συμβουλή Javascript...OnError για εικόνες...

Tuesday, 16 March 2004

//

Less than a minute

This is an odd little tip...not sure where I found this out, but I use it a fair bit...if you have an image which you're not sure will be available, add this to the img tag: OnError="this.src='/images/shim.gif';this.width='1';this.height='1'" (where images/shim.gif is an image which will ALWAYS be available - if not you'll get an odd error...).

Εν πάση περιπτώσει, το , μπορεί να αποτρέψει την άσχημη σπάστη εικόνα του ...

Finding related posts...
logo

© 2026 Scott Galloway — Unlicense — All content and source code on this site is free to use, copy, modify, and sell.