1.用Dreamweaver打开post_upload.asp,找到247行:
If F_Type=1 or F_Type=2 then
Response.write "<script>parent.Dvbbs_Composition.document.body.innerHTML+='[upload="&FileExt&"]"&ShwoFileName&"[/upload]<br>'</script>"
Else
Response.write "<script>parent.Dvbbs_Composition.document.body.innerHTML+='[upload="&FileExt&"]viewFile.asp?ID="&DownloadID&"[/upload]<br>'</script>"
End If2.将以上代码替换成下边代码保存即可:
If F_Type=1 then '上传图片
Response.write "<script>parent.Dvbbs_Composition.document.body.innerHTML+='<img border=""0"" src="""&ShwoFileName&"""><br>'</script>"
Elseif F_Type=2 Then '上传Flash
Response.write "<script>parent.Dvbbs_Composition.document.body.innerHTML+='[upload="&FileExt&"]"&ShwoFileName&"[/upload]<br>'</script>"
Else '上传其他文件
Response.write "<script>parent.Dvbbs_Composition.document.body.innerHTML+='[upload="&FileExt&"]viewFile.asp?ID="&DownloadID&"[/upload]<br>'</script>"
End If本次测试动网版本为:Dvbbs Version 7.1.0 Sp1。
评论(0)
暂无评论。