Back to "Un piccolo consiglio di Javascript...OnError per immagini..."

This is a viewer only at the moment see the article on how this works.

To update the preview hit Ctrl-Alt-R (or ⌘-Alt-R on Mac) or Enter to refresh. The Save icon lets you save the markdown file to disk

This is a preview from the server running through my markdig pipeline

Imported mostlylucidcouk

Un piccolo consiglio di Javascript...OnError per immagini...

Saturday, 11 October 2003

Un piccolo consiglio di Javascript...OnError per immagini...

pubblicato su 1:03 Stamattina

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...).

Comunque, impedisce la brutta cosa dell'immagine rotta...

logo

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