<img src="{smallimage}" border="0" id="img_success" onerror="gotoImg()" />
<div id="img_failed"> </div>
<script language="javascript教程" type="text/javascript">
function gotoImg()
{
var img_success = document.getElementById("img_success");
var img_failed = document.getElementById("img_failed");
//隐藏img_success图片
img_success.style.display = 'none';
//显示一段JS的内容
img_failed.innerHTML = "<!--#include virtual="/adsense/content_right.shtml"-->";
//content为JS返回的内容
}
</script>
时间: 2024-10-25 21:35:35