图片不存在的时候,显示一个默认图片
疯子的紫梦
posted @ 2009年12月18日 00:12
in JavaScript
, 1079 阅读
<img src="noexist.gif" onerror="this.src='http://www.lanrentuku.com/images/logo.jpg'" /> <p>查找更多代码,请访问:<a href="http://www.lanrentuku.com" target="_blank">懒人图库</a></p>
通过这个方法,就可以实现当没有图片或图片丢失的情况,显示一个默认图片。以后,不用通过程序来判断图片是否存在了
2023年7月26日 00:02
Mit WhatsApp Status können Sie Bilder und Videos an andere Benutzer der Messaging-App senden, die sich zu einer beliebten Social-Networking-Plattform in Indien entwickelt hat. whatsapp status verzeichnis WhatsApp war früher einfach eine Messaging-App. WhatsApp Status ist eine Option, mit der Sie Statusaktualisierungen senden können, die nach einem Tag gelöscht werden. Sie können Bilder, Videos, Text, Links und animierte GIFs senden.
2023年9月04日 16:17
TN DGE Recently upload TN 6th Last Year Question Paper 2024 at Official Website for Students Final Exam Practice Purpose, Students our Suggestion TN SCERT Model Question Paper 2024 Download and Prepare , Practice Good Pass Marks in Exam The Final Exam. Exam Paper Available Tamil Nadu State Council of Educational Research and Training (TN SCERT) Official Website. Tamil Nadu Tamil Nadu 6th Question Paper 2024 Question Paper 2024 is Available for All the Subjects such as English, Tamil, Mathematics, Computer Science, History, Economics, Home Science, Zoology, Physics, Chemistry etc, Students can Improve their Reading Comprehension and can also Develop their Vocabulary.
2024年1月11日 19:31
Pavzi.com is a startup by passionate webmasters and bloggers who have a passion for providing engaging content that is accurate, interesting, and worthy to read. pavzi.com We are more like a web community where you can find different information, resources, and topics on day-to-day incidents or news. We provide you with the finest web content on every topic possible with the help of the editorial and content team.