连接的图片失效自动用指定图片代替
1.修改header.htm
复制内容到剪贴板
代码:
<script type="text/javascript" src="include/menu.js"></script>下面加
复制内容到剪贴板
代码:
<script>
function errpic(thepic){
thepic.src="images/nopic.gif" //图片地址
}
</script>2.修改discuzcode.func.php
复制内容到剪贴板
代码:
"bbcodeurl('\\1', '<img src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" onmouseover=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" onclick=\"if(!this.resized) {return true;} else {window.open(\'%s\');}\" onmousewheel=\"return imgzoom(this);\" alt=\"\"后面加
复制内容到剪贴板
代码:
onerror=\"javascript:errpic(this)\"3.上传图片到images
