I just finished reading the Learning jQuery 1.3 book, authored by Karl Swedberg and Jonathan Chaffer and published by Packt Publishing . They sent me a free review copy of the book and this is a personal and independent review of the book.
We can use the onerror event of an img tag to load an alternate image if the main image is not found. Something like this :- [xhtml]<img src="my_image.jpg" onerror="this.src=’offline.jpg’" />[/xhtml] The above HTML code tries to load my_image.jpg and if not found, loads offline.jpg as an alternate. This is pretty good because this means you […]
Most recent comments