摘要:
Image Object的onerror定義:Code is executed when an error occurs with the loading of the image.舉例說明:狀況1:有指定src<imagesrc="test.gif"onerror="alert('This image didn\'t download successfully')" />如果找不到test.gif這張圖ˇ的話,就會去執行onerror事件。IE、FF、Chrome都會去執行onerror事件!!狀況2:沒指定src& 阅读全文
posted @ 2012-11-09 18:10 达奇 阅读(490) 评论(0) 推荐(0) 编辑